[gdal-dev] Initialization "record" causing bad extents/geometries in OGR for GPX files
Even Rouault
even.rouault at spatialys.com
Wed Apr 26 06:34:30 PDT 2017
On mercredi 26 avril 2017 06:15:34 CEST Vlad wrote:
> I have a collection of GPX files that have something like this...
>
> <trkpt lat="" lon="">
> <ele></ele>
> <time>2016-08-15T10:48:20Z</time>
> </trkpt>
>
> as the first element of a <trk><trkseg> section. It's probably put in there
> on device initialization. When OGR (Ogrinfo and the Dataset/Datasource
> Java classes) extract information, this trkpt is interpreted as having a
> lat/lon of 0,0.
Vlad,
I've just committed a patch to ignore such lat/lon with empty content in trunk and 2.2 branch,
but note that such a GPX file doesn't validate the GPX XML schema.
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/20170426/d2fe812d/attachment.html>
More information about the gdal-dev
mailing list