<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span style="font-size: 12pt;">> From: even.rouault@mines-paris.org</span><br><div>> To: gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] OSM to KML Error<br>> Date: Wed, 3 Jul 2013 13:38:41 +0200<br>> CC: josh-talk@hotmail.com<br>> <br>> Le mercredi 03 juillet 2013 13:20:10, Josua S a écrit :<br>> > Hello<br>> > <br>> > I exported an OSM file from openstreetmap.org and tried to convert it to<br>> > KML with GDAL/OGR 1.10.0. However the conversion does not succeed and I<br>> > get a lot of these errors: "ERROR 6: Interleaved feature adding to<br>> > different layers is not supported". Is this a known problem and is there a<br>> > solution to prevent this error? Thank you very much.<br>> <br>> Josua,<br>> <br>> When converting OSM files with ogr2ogr, the features are read in an interleaved <br>> way. For example, you can get X features from layer lines, then Y features <br>> from layer multipolygons, then Z features from layer lines again, etc...<br>> <br>> The writing part of the KML driver doesn't support that back-and-forth between <br>> layers, hence this error.<br>> <br>> A workaround is to convert to an intermediary format such as shapefile, <br>> PostGIS, sqlite/spatialite, gml, etc... that support writing features in <br>> layers in an interleaved way. Then you can convert to KML.<br>> <br>> Best regards,<br>> <br>> Even<br>> <br>> -- <br>> Geospatial professional services<br>> http://even.rouault.free.fr/services.html<br></div><div><br></div><div><br></div><div><div>Hello Even</div><div><br></div><div>Thank you very much for your help, now it works! Probably I have not fully understood the problem, but is it something that can and will be fixed in a future version?</div><div><br></div><div>Josua</div></div>                                         </div></body>
</html>