You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Martin Andersson (Jira)" <ji...@apache.org> on 2022/03/02 10:14:00 UTC

[jira] [Created] (SEDONA-86) Support empty geometries in ST_AsBinary and ST_AsEWKB

Martin Andersson created SEDONA-86:
--------------------------------------

             Summary: Support empty geometries in ST_AsBinary and ST_AsEWKB
                 Key: SEDONA-86
                 URL: https://issues.apache.org/jira/browse/SEDONA-86
             Project: Apache Sedona
          Issue Type: Improvement
            Reporter: Martin Andersson


Current implementation retrieves the first coordinate in the geometry to determine if there is a Z axis.

 

Empty geometries have no coordinates and the check fails with a NPE.

 

Steps to reproduce: "SELECT ST_AsBinary(ST_GeomFromWKT('POINT EMPTY'))"



--
This message was sent by Atlassian Jira
(v8.20.1#820001)