Re: [gdal-dev] Can we combine all layers of kml into single GeoJSON

2015-02-05 Thread Jukka Rahkonen
Even Rouault even.rouault at spatialys.com writes: Mani, you could use a VRT union layer to merge all layers into a single one. This is documented at http://gdal.org/drv_vrt.html In your case this would be creating a .vrt file like : OGRVRTDataSource OGRVRTUnionLayer

Re: [gdal-dev] Can we combine all layers of kml into single GeoJSON

2015-02-05 Thread Eli Adam
Just thinking, but wouldn't it be nice to have ogrbuildvrt tool that would take list of OGR supported layers and outputs a simple vrt with one union layer like the one in your example? There is this script, https://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr2vrt.py, with details

Re: [gdal-dev] Can we combine all layers of kml into single GeoJSON

2015-02-05 Thread Even Rouault
Le jeudi 05 février 2015 17:24:24, Eli Adam a écrit : Just thinking, but wouldn't it be nice to have ogrbuildvrt tool that would take list of OGR supported layers and outputs a simple vrt with one union layer like the one in your example? There is this script,

Re: [gdal-dev] Can we combine all layers of kml into single GeoJSON

2015-02-05 Thread Manikanta Kondeti
Yeah that ll be pretty awesome :D On Thu, Feb 5, 2015 at 4:49 PM, Jukka Rahkonen jukka.rahko...@maanmittauslaitos.fi wrote: Even Rouault even.rouault at spatialys.com writes: Mani, you could use a VRT union layer to merge all layers into a single one. This is documented at

Re: [gdal-dev] Can we combine all layers of kml into single GeoJSON

2015-02-03 Thread Even Rouault
Le mardi 03 février 2015 06:57:32, Manikanta Kondeti a écrit : Hi, I am trying to figure out if there is way to combine all layers in kml into a single Geojson object using ogr2ogr? One way I figured out is to iteratively traverse through all the layers and create geojson for each layer.

[gdal-dev] Can we combine all layers of kml into single GeoJSON

2015-02-02 Thread Manikanta Kondeti
Hi, I am trying to figure out if there is way to combine all layers in kml into a single Geojson object using ogr2ogr? One way I figured out is to iteratively traverse through all the layers and create geojson for each layer. Now the issue it to have all json's into a single json object? Need