pnorman / osmborder

Convert admin relations to render borders
24 stars 20 forks source link

Properly handle invalid geometries. #11

Closed lseelenbinder closed 5 years ago

lseelenbinder commented 5 years ago

This fixes a bug caused by invalid geometries. When an invalid geometry is encountered, the code currently leaves a partially finished output line and outputs the next Way onto the same line, causing any import to fail (or drop a valid geometry because of an invalid line).

This fixes the bug by allowing errors to be caught before any output for a Way is processed.