[gdal-dev] Initialization "record" causing bad extents/geometries in OGR for GPX files
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="">
> 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.
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.
Spatialys - Geospatial professional services
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev