Skip to content

geo: geos WKT cannot handle POINT EMPTY inside of collections #53631

@erikgrinaker

Description

@erikgrinaker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions