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 #78842 is a reply to message #78778] Wed, 21 December 2011 13:27 Go to previous messageGo to previous message
desertdryad is currently offline  desertdryad
Messages: 39
Registered: August 2011
Member
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 :)
[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: Wed Oct 08 19:55:06 PDT 2025

Total time taken to generate the page: 0.00432 seconds