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 #78844 is a reply to message #78778] Wed, 21 December 2011 13:16 Go to previous messageGo to previous message
desertdryad is currently offline  desertdryad
Messages: 39
Registered: August 2011
Member
> 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!!
[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 16:35:43 PDT 2025

Total time taken to generate the page: 0.32002 seconds