hholzgra / ocitysmap

Fork of ocitysmap repository at savannah.nongnu.org
Other
35 stars 12 forks source link

Check for zero latitude or longitude range #54

Closed hholzgra closed 2 years ago

hholzgra commented 2 years ago

Right now when passing in two identical latitude or longitude values for the bounding box this leads to a division-by-zero error during rendering. Such errors should either be caught earlier in the process, with a more clear error message; or the renderer should maybe simply extend the bounding box to a minimum size, like e.g. one by one arc second, or maybe better a fixed absolute size like e.g. ten by ten meters.

See also e.g.:

http://print.get-map.org/maps/224899

and

https://github.com/hholzgra/maposmatic/issues/88