comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problem: Opening a 20-30MB sized ShapeFile
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Problem: Opening a 20-30MB sized ShapeFile [message #45964] Mon, 24 October 2005 04:11
Chirag Modh is currently offline  Chirag Modh
Messages: 4
Registered: August 2005
Junior Member
Hi All,

I am opening ShapeFile (.shp) in IDL by using IDLffShape class.
My code run nicely for small ShapeFile, but when I am loading 5MB sized
ShapeFile it takes 2-3 Minuts and for 30MB sized ShapeFile it takes too
much time to open some time it's hangs up .
For same file ENVI not takes too much time it opens it very quickly.
My programme is written bellow
what I am doing.

oWin= obj_new('IDLgrWindow')
oView=obj_new('IDLgrView')
oModel=obj_new('IDLgrModel')
oView->Add,oModel

entity=self->IDLffShape::GetEntity(/ALL)
for i=0, self.nRecord-1 do begin ; self.nRecord = 1,00,000

DATA= (*entity[i].vertices)
oPolygon=OBJ_NEW('IDLgrPolygon')
oPolygon->SetProperty,DATA=temporary(data)

oModel->Add, oPolygon
self->IDLffShape::DestroyEntity, entity[i]
endfor
oWin->Draw,oView

I hope you can suggest me better solution
Regards,
Chirag Modh
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Inserting Wave File
Next Topic: Re: Adobe 7.0 in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:34:46 PDT 2025

Total time taken to generate the page: 0.00399 seconds