You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you end up with MULTIPOLYGON (). which in turn parses to null (which cannot be stringified anymore).
So in summary:
MULTIPOLYGON EMPTY parses just fine, to a geometry with empty coordinates array
a multipolygon geometry with empty coordinates array stringifies to MULTIPOLYGON () instead of MULTIPOLYGON EMPTY, and is treated as invalid syntax when re-parsing it, resulting in a null parsing result
The text was updated successfully, but these errors were encountered:
senritsu
changed the title
empty wkt geometries do not roundtrip
empty wkt multipolygon does not roundtrip
Nov 5, 2019
If you start with
and then try to roundtrip it using
you end up with
MULTIPOLYGON ()
. which in turn parses tonull
(which cannot be stringified anymore).So in summary:
MULTIPOLYGON EMPTY
parses just fine, to a geometry with empty coordinates arrayMULTIPOLYGON ()
instead ofMULTIPOLYGON EMPTY
, and is treated as invalid syntax when re-parsing it, resulting in anull
parsing resultThe text was updated successfully, but these errors were encountered: