spatial4j icon indicating copy to clipboard operation
spatial4j copied to clipboard

WKTWriter empty point/geometrycollection WKT serialization

Open abrokenjester opened this issue 7 years ago • 1 comments
trafficstars

When putting an empty Point through WKTWriter.toString, it produces a string of the form POINT () or POINT(NaN, NaN) instead of POINT EMPTY. Similarly for an empty ShapeCollection, we get the serialization GEOMETRYCOLLECTION () instead of GEOMETRYCOLLECTION EMPTY.

abrokenjester avatar Aug 07 '18 09:08 abrokenjester

Thanks for reporting. PRs welcome. Should be easy.

dsmiley avatar Mar 08 '20 15:03 dsmiley