roelderickx / ogr2osm

A tool for converting ogr-readable files like shapefiles into .pbf or .osm data
https://pypi.org/project/ogr2osm/
MIT License
59 stars 14 forks source link

Rounding coordinates not correct if natural number #42

Closed roelderickx closed 1 year ago

roelderickx commented 1 year ago

Coordinates are rounded up to significant digits, as specified in the parameters. However, when a coordinate is a natural number, say 33.0, then the output in the osm file is 33.. It should be either just 33 or 33.0