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

Home » Public Forums » archive » Re: Using .evf files programmatically
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
Re: Using .evf files programmatically [message #56762] Tue, 13 November 2007 09:32
Matt[1] is currently offline  Matt[1]
Messages: 23
Registered: December 2006
Junior Member
Thanks. What is the shapefile reader? Is that the IDLffShape object
mentioned previously? Sorry if the question is inappropriate - I'm a
novice.

Matt
Re: Using .evf files programmatically [message #56764 is a reply to message #56762] Tue, 13 November 2007 08:43 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> Well, evf attributes appear to be saved in a .dbf file like they are
> for shapefiles. There's an ENVI routine to write DBF files for evf
> attributes, but there doesn't seem to be a routine to read one. So I
> am assuming they intend for you to read the dbf files using ODBC
> methods? If so, since i know next to nothing about ODBC I'd be pretty
> tempted to just forget about the evf file and go back to reading the
> shapefile directly using the IDLffShape object. You can find some
> good examples of doing that here:
>
> http://www.dfanning.com/map_tips/shapefile.html
>
> Hope that helps,
> Jeff

Similarly, you can access the evf file and use the shapefile reader to
read the dbf (only) that is associated with your evf file...

Jean
Re: Using .evf files programmatically [message #56774 is a reply to message #56764] Mon, 12 November 2007 12:40 Go to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
On Nov 12, 2:26 pm, Matt <mmsmith1...@gmail.com> wrote:
> Hi group:
>
> Does anyone have experience accessing .evf files programatically? I am
> using an evf file that I converted from shapefile format. I use
> envi_file_query to get the coordinates for each polygon and use these
> coordinates to subset a raster image.
>
> I need to name each ouput file according to an attribute that was
> present in the original shapefile but from what I can tell it's no
> longer present in the evf file. Is there a way to access this
> information programmatically? Basically, when I extract the
> coordinates from a given evf record I need to figure out the name of
> the record so that i can name my ouptut files.
>
> Any one have experience with this?
>
> Thanks.
>
> Matt

Well, evf attributes appear to be saved in a .dbf file like they are
for shapefiles. There's an ENVI routine to write DBF files for evf
attributes, but there doesn't seem to be a routine to read one. So I
am assuming they intend for you to read the dbf files using ODBC
methods? If so, since i know next to nothing about ODBC I'd be pretty
tempted to just forget about the evf file and go back to reading the
shapefile directly using the IDLffShape object. You can find some
good examples of doing that here:

http://www.dfanning.com/map_tips/shapefile.html

Hope that helps,
Jeff
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with PLOT_OO ticks
Next Topic: IDL T-Shirt Has Arrived!

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

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

Total time taken to generate the page: 0.00549 seconds