georust / geozero

Zero-Copy reading and writing of geospatial data.
Apache License 2.0
322 stars 30 forks source link

Fix WKB and WKT empty points handling #166

Closed Oreilles closed 10 months ago

Oreilles commented 10 months ago

Currently:

This PR fixes both issues by calling processor.empty_point in the WKB reader if the parsed WKB coordinates are NaN, and by writing EMPTY instead of {x} {y} ... in the WKT writer if the coordinates given are NaN.

Notes, cause this seems redundant: