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

Home » Public Forums » archive » reading shapefiles & IDL objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: reading shapefiles & IDL objects [message #84682 is a reply to message #78842] Thu, 28 June 2012 14:40 Go to previous messageGo to previous message
kristen234 is currently offline  kristen234
Messages: 1
Registered: June 2012
Junior Member
On Wednesday, December 21, 2011 2:27:27 PM UTC-7, desertdryad wrote:
> On Dec 21, 2:16 pm, desertdryad <dry...@gmail.com> wrote:
>>> The simplest way is just to march through the entities
>>> and keep track of the entities's bounds. This is how
>>> cgDrawShapes works, when you set the AutoDraw keyword.
>>
>>>        FOR j=0,N_Elements(*entities)-1 DO BEGIN
>>>           thisEntity = (*entities)[j]
>>>           entityMinX[j] =  thisEntity.bounds[0]
>>>           entityMaxX[j] =  thisEntity.bounds[4]
>>>           entityMiny[j] =  thisEntity.bounds[1]
>>>           entityMaxY[j] =  thisEntity.bounds[5]
>>>        ENDFOR
>>>        xrange = [Min(entityMinX), Max(entityMaxX)]
>>>        yrange = [Min(entityMinY), Max(entityMaxY)]
>>>        cgPlot, xrange, yrange, ....
>>
>>> Cheers,
>>
>>> David
>>
>> I think I get that.  Thanks, David!!
>
> PS - all the pieces are in the same directory.. I know GIS better than
> I know IDL :)

Did you ever figure out why moving your shapefile to the directory with 'states.shp' was necessary? I'm having the same problem with my shapefile, but I'm not permitted to save files to the IDL distribution directories. Thanks for the help!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Widget Object graphics code crashes V8.2
Next Topic: Re: IDL/ENVI Attempt to call undefined procedure/function - ENVI_PROJ_CREATE

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

Current Time: Fri Oct 10 18:21:36 PDT 2025

Total time taken to generate the page: 0.32435 seconds