Hi Everyone, I am attempting to use ogr2ogr to convert GeoJSON to GML. It works well for a single json file. But I would like to convert several files, such that each input file ends up as a separate layer in a single GML output file.
The GML help doc seems to suggest that GML can be written with multiple layers - i.e. "On export all layers are written to a single GML file all in a single feature collection. Each layer's name is used as the element name for objects from that layer." I tired at first by simply adding additional json files to the command line : ogr2ogr -f GML output.gml roads.json buildings.json But this fails with the error : "FAILURE: Couldn't fetch requested layer 'buildings.json'!" (this is a valid file by the way - and can be converted on it's own). Can anyone shed any light on this? Is it possible to write multiple layers (for example, from an input file representing roads, and an input file representing buildings) to a GML file using ogr2ogr? If not, can this be done in code somehow? Any help greatly appreciated. Regards, Matt -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Writing-a-GML-file-containing-multiple-layers-tp5044264.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev