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.
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.