<div dir="ltr"><div><div><div><div><div><div><div><div>Thank you guys.<br><br></div>I used -explodecollections:<br><br></div>1) SHP -> GPKG<br></div>2) Clip contour lines in GPKG (this produces geometrycollections) -> GPKG<br></div>3) GPKG -> GPKG (with -explodecollections)<br></div>4) GPKG -> SHP (-nlt LINESTRING25 -skipfailures)<br><br></div>At the moment I have to use GDAL 1.11. With >= 2.0 there are for sure more elegant ways (with -dialect INDIRECT_SQLITE option).<br><br></div>regards<br></div>Stefan <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 10:39 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>
> Stefan,<br>
><br>
> you could try the -explodecollections of ogr2ogr.<br>
><br>
> Even<br>
<br>
</span>Right, I did not remember but there is a bit similar case about separating<br>
elementary geometries from collections in gis.stackexchange<br>
<a href="http://gis.stackexchange.com/questions/137408/ogr2ogr-unable-to-open-kml-datasource" target="_blank">http://gis.stackexchange.com/questions/137408/ogr2ogr-unable-to-open-kml-datasource</a><br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>