I have a folder of GML files that I want to be able to merge to create one GML file that I can then view.
I have tried this using the code described but substuting for GML in this website but to no avail.
The code I used was:
mkdir merged for %f in (*.gml) do ( if not exist merged\merged.gml ( ogr2ogr -f "GML" merged\merged.gml %f) else ( ogr2ogr -f "GML" -update -append merged\merged.gml %f -nln Merged ) )
For clarity the files are for the OS mastermap topography data.
Forgot to say I get the following error message several times when I run the code.
C:\OSMM_GMLS>(if not exist merged\merged.gml (ogr2ogr -f "GML" merged\merged.gml M00001177-SX6590-5c296.gml ) else (ogr2ogr -f "GML" -update -append merged\mer ged.gml M00001177-SX6590-5c296.gml -nln Merged ) ) FAILURE: Unable to open existing output datasource `merged\merged.gml'.