spatial4j
spatial4j copied to clipboard
WKTWriter empty point/geometrycollection WKT serialization
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.
Thanks for reporting. PRs welcome. Should be easy.