[gdal-dev] ogr2ogr: why only inserting the first file?

Matt Wilkie matt.wilkie at gov.yk.ca
Thu Nov 6 19:06:13 EST 2008


Hello world,

I'm trying to merge a bunch of shapefiles using the syntax below. I 
could have sworn this was working for me last year, but maybe I just 
didn't look closely enough at the time.

1. Download 2 or more of these files, unpack somewhere:
http://ftp2.cits.rncan.gc.ca/pub/canvec/50k_gml/094/a/

2. Create shapefile containers from the first GML file:
    ogr2ogr shp-out 094a01_3_0.gml

3. Append the rest:
    ogr2ogr shp-out -append 094a02_3_0.gml 094a03_3_0.gml ...

However only data from the first file are present. Why doesn't this work?

I'm using ogr utiltiies from "GDAL 1.5.3, released 2008/09/09" Osgeo4w 
(as reported by "gdalinfo --version". I couldn't figure out how to get 
ogr to report it's number).

I also tried to merge into gml, but the output file was <1kb and empty:
   ogr2ogr -f gml test-merge.gml 094a01_3_0.gml 094a02_3_0.gml



thanks in advance for your time,

-- 
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------


More information about the gdal-dev mailing list