Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-86

Support empty geometries in ST_AsBinary and ST_AsEWKB

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0

    Description

      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'))"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              umartin Martin Andersson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m