-
Notifications
You must be signed in to change notification settings - Fork 4.1k
geo: geos WKT cannot handle POINT EMPTY inside of collections #53631
Copy link
Copy link
Closed
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the communityOriginated from the community
Description
Describe the problem
st_astext() is unable to handle empty points in geometry collections.
To Reproduce
CockroachDB:
> select st_astext('GEOMETRYCOLLECTION (POINT EMPTY)');
ERROR: st_astext(): geos error: IllegalArgumentException: Empty Points cannot be represented in WKB
PostGIS:
# select st_astext('GEOMETRYCOLLECTION (POINT EMPTY)');
st_astext
---------------------------------
GEOMETRYCOLLECTION(POINT EMPTY)
(1 row)
Environment:
- CockroachDB version:
masterat8b91062f93 - Server OS: macOS
- Client app:
cockroach demo
CC @otan
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the communityOriginated from the community