<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Though another thing I just noted is that the attributes aren’t kept. I think this is already mentioned in the <a href="http://trac.osgeo.org/gdal/ticket/5095" class="">ticket #5095</a> and you said it requires a lot more development. Is this still the same status?<div class=""><br class=""></div><div class="">Uli</div><div class=""><br class=""><div><blockquote type="cite" class=""></blockquote></div><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 4, 2014, at 19:37, Ulrich Strötz <<a href="mailto:ustroetz@gmail.com" class="">ustroetz@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">I didn’t compile against libkml. I compiled again against libkml and now it works perfect.<br class=""><br class="">Thanks again for this great fix! Makes my work a lot easier :)<br class=""><br class="">Uli<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Dec 4, 2014, at 17:17, Even Rouault <<a href="mailto:even.rouault@spatialys.com" class="">even.rouault@spatialys.com</a>> wrote:<br class=""><br class="">Le vendredi 05 décembre 2014 00:11:44, Ulrich Strötz a écrit :<br class=""><blockquote type="cite" class="">Thanks Even for getting on this so quickly!<br class=""><br class="">I built GDAL from source after you committed your changes, though I still<br class="">only get the start and end point. Did you try it with my sample file?<br class=""></blockquote><br class="">Yes, I did. Are you compiling against libkml ? <br class=""><br class="">When running ogrinfo on the file it should display :<br class="">INFO: Open of `in.kml'<br class="">     using driver `LIBKML' successful.<br class=""><br class="">If it displays "using driver `KML' successful", then you're using the 'old' <br class="">KML driver, and gx:Track/MultiTrack won't be recognized.<br class=""><br class="">Even<br class=""><br class=""><blockquote type="cite" class=""><br class="">Thanks,<br class=""><br class="">Uli<br class=""><br class=""><blockquote type="cite" class="">On Dec 4, 2014, at 10:07, Even Rouault <<a href="mailto:even.rouault@spatialys.com" class="">even.rouault@spatialys.com</a>><br class="">wrote:<br class=""><br class="">Le mercredi 03 décembre 2014 19:53:44, Ulrich Strötz a écrit :<br class=""><blockquote type="cite" class="">Hi everyone,<br class=""><br class="">I am trying to use ogr2ogr with a KML file generated by Google My Tracks<br class=""><<a href="https://play.google.com/store/apps/details?id=com.google.android.maps.m" class="">https://play.google.com/store/apps/details?id=com.google.android.maps.m</a><br class="">yt racks&hl=en>.<br class=""><br class="">There was a ticket #5095 <<a href="http://trac.osgeo.org/gdal/ticket/5095" class="">http://trac.osgeo.org/gdal/ticket/5095</a>> about<br class="">this which is marked as fixed, but it still does not work properly.<br class=""><br class="">I use GDAL 1.11.1, released 2014/09/24 and the following command:<br class="">ogr2ogr -f "GeoJSON" out.geojson in.kml<br class=""><br class="">It does create only the start and end points of the track, but not the<br class="">points in between.<br class=""><br class="">The sample file can be found here.<br class=""><a href="https://www.dropbox.com/s/ilafup4m0vcvmxj/in.kml?dl=0" class="">https://www.dropbox.com/s/ilafup4m0vcvmxj/in.kml?dl=0</a><br class=""><https://www.dropbox.com/s/ilafup4m0vcvmxj/in.kml?dl=0><br class=""><br class="">Any help on how to get this to work is appreciated.<br class=""></blockquote><br class="">Ulrich,<br class=""><br class="">Ticket 5095 was about gx:Track, but the geometry in your file is a<br class="">gx:MultiTrack. I've just added support for the later in the LIBKML driver<br class="">in GDAL trunk.<br class=""><br class="">Even<br class=""></blockquote></blockquote><br class="">-- <br class="">Spatialys - Geospatial professional services<br class=""><a href="http://www.spatialys.com" class="">http://www.spatialys.com</a><br class=""></blockquote><br class=""></div></blockquote></div><br class=""></div></body></html>