[gdal-dev] Merge features from two different files.

Félix Pedrera García felix.pedrera at deimos-space.com
Mon Jan 26 12:54:01 EST 2009


Hello,

We have several Mapinfo Files with the same geometry information but 
with different features associated:

1.TAB
2.TAB
...
N.TAB
COMMON.TAB

COMMON.TAB covers all the surface from 1.TAB to N.TAB, and are made of 
polygons, so a polygon present in 1.TAB has an associated polygon with 
the same coordinates in COMMON.TAB, and the same for the files from 1 to N.

1 to N files have one feature named "Value" and in COMMON the feature is 
named "Text".

We want to append the "Text" feature in COMMON to every file 1,2,..N, 
for each polygon in 1,2,..,N file which overlaps with the polygon with 
the same coordinates in COMMON.

Is there a way to achieve this with the OGR tools (ogr2ogr) or a better 
approach is to load the files in PostGIS and deal with spatial queries?
Maybe using the OGR API or other programming APIs?

Thanks in advance,

-- 
Félix




More information about the gdal-dev mailing list