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