<div dir="ltr">Yeah that ll be pretty awesome :D </div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 4:49 PM, Jukka Rahkonen <span dir="ltr"><<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Even Rouault <even.rouault <at> <a href="http://spatialys.com" target="_blank">spatialys.com</a>> writes:<br>
<br>
<br>
<br>
> Mani,<br>
><br>
> you could use a VRT union layer to merge all layers into a single one.<br>
This is<br>
> documented at <a href="http://gdal.org/drv_vrt.html" target="_blank">http://gdal.org/drv_vrt.html</a><br>
><br>
> In your case this would be creating a .vrt file like :<br>
><br>
> <OGRVRTDataSource><br>
>     <OGRVRTUnionLayer name="unionLayer"><br>
>         <OGRVRTLayer name="source1"><br>
>             <SrcDataSource>source.kml</SrcDataSource><br>
>             <SrcLayer>name_of_first_kml_layer</SrcLayer><br>
>         </OGRVRTLayer><br>
>         <OGRVRTLayer name="source2"><br>
>             <SrcDataSource>source.kml</SrcDataSource><br>
>             <SrcLayer>name_of_second_kml_layer</SrcLayer><br>
>         </OGRVRTLayer><br>
>     </OGRVRTUnionLayer><br>
> </OGRVRTDataSource><br>
><br>
> and then use ogr2ogr to convert this .vrt into geojson.<br>
<br>
</span>Hi,<br>
<br>
Just thinking, but wouldn't it be nice to have "ogrbuildvrt" tool that would<br>
take list of OGR supported layers and outputs a simple vrt with one  union<br>
layer like the one in your example?<br>
<br>
-Jukka Rahkonen-<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br></div>