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:
master at 8b91062f93
- Server OS: macOS
- Client app:
cockroach demo
CC @otan
Describe the problem
st_astext()is unable to handle empty points in geometry collections.To Reproduce
CockroachDB:
PostGIS:
Environment:
masterat8b91062f93cockroach demoCC @otan