colerbe wrote:
> Hello everyone,
>
> I need to join several different EVF files into one unique vector
> file.
> Can you please tell me how to solve this problem?
>
> Thanks in advance,
> Luis
Have a look at ENVI_EVF_DEFINE_ADD_RECORD
There is an example where several polygons, points, lines are added to a
new vector.
In your case, you would have to get each vector set of coordinate.
One at a time, open the EVF files.
Use ENVI_EVF_INFO to find the number (and type!) of entities in your EVF
file.
Loop through each record and get the coordinates using
ENVI_EVF_READ_RECORD. Eventually, read the DBF file (if any) using a
shapefile reader (yes, it is weird, but that the way it is... open a
shapefile with no shape, so you can read the dbf. I believe there is a
good example on David Fanning website).
then you just have to copy the coordinates and the DBF content to your
new vector!
Jean


|