Uploaded image for project: 'GeoTools'
  1. GEOT-724

org.geotools.data.oracle.sdo.SDO crash for EMPTY Geometries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15.2, 16-M0
    • Component/s: None
    • Labels:
      None

      Description

      If you happen to submit an empty Geometry, specifically a 'POINT EMPTY',
      to the SDO.D() method, it will crash at line 140:
      return Double.isNaN(geom.getCoordinate().z) ? 2 : 3;
      because getCoordinate() will return null.
      This proably happens for other 'xxx EMPTY' Geometries.
      Besides, why arent' we using the "Oracle Spatial Java Class Library " from Oracle???

        Attachments

          Activity

            People

            • Assignee:
              ianturton Ian Turton
              Reporter:
              harrison.grundy codehaus (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: