[gdal-dev] OGR support for Google Latitude KML output

Ulrich Strötz ustroetz at gmail.com
Thu Dec 4 18:11:24 PST 2014


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 <ustroetz at gmail.com> 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 <even.rouault at spatialys.com> 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 <even.rouault at spatialys.com>
>>>> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141204/d4935d83/attachment.html>


More information about the gdal-dev mailing list