OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.9k stars 2.55k forks source link

37 trailing blanks after GPX <bounds/> tags #10855

Closed jidanni closed 1 month ago

jidanni commented 1 month ago

No reason for panic, but,

$ ogr2ogr ... h.gpx h.csv -sql 'SELECT Name FROM "h"' -nlt POINT
$ grep \ $ h.gpx | cat -vte
<bounds ... />                                     $
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              (37 trailing blanks after GPX <bounds/> tags)
rouault commented 1 month ago

That's on purpose. When writing the file, we don't know the bounds at the beginning, hence leaving provisional space to fill it later.