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

Home » Public Forums » archive » Re: SHAPEFILE changes in IDL7.1?
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: SHAPEFILE changes in IDL7.1? [message #68883 is a reply to message #68882] Mon, 30 November 2009 11:44 Go to previous messageGo to previous message
Brian McNoldy is currently offline  Brian McNoldy
Messages: 35
Registered: July 2000
Member
On Nov 30, 11:31 am, Brian McNoldy <mcno...@atmos.colostate.edu>
wrote:
> On Nov 30, 11:14 am, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> Oh, oh. Sounds like they switched to the algorithm they
>> use in ENVI. :-(
>
>> I don't have time today to investigate, but I'll look into
>> it tonight. Can you give more details? Are you drawing this
>> on a map projection, etc.?
>
>> Cheers,
>> David
>
> I figured something changed in the heart of the language, because all
> other components were unchanged.  I am not doing anything fancy with
> it, just drawing county lines (as an example... I also draw roads from
> another shapefile) on an existing map projection.  The routine does
> end up doing what it's supposed to, but it takes unreasonably long --
> several minutes instead of a blink.  Here is what I'm using (and have
> successfully used for years):
> drawstates,'COUNTIES.SHP',attribute_name='NAME',statenames=' ALL'
>
> Thanks in advance for looking into it!
> Brian


I narrowed the problem down to the last line of the program:
"Heap_Free, entities".
(see http://www.dfanning.com/programs/drawstates.pro for the full
program)
If I change that to "Ptr_Free, entities", all is well and the program
works like it used to: quickly. Something between v7.0 and v7.1 is
quite different when it comes to heap versus pointer cleaning!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to store compressed data ?
Next Topic: Re: costum stretch an image

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

Current Time: Wed Oct 08 19:34:38 PDT 2025

Total time taken to generate the page: 0.00380 seconds