Skip to Main Content

Developer Community

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Select rows where SDO_GEOMETRY is blank (no vertices)

User_1871Nov 27 2023 — edited Nov 29 2023

Background info about a related datatype:

With Esri's SDE.ST_GEOMETRY spatial type (object type), there are four different states that a row can be in:

  1. Has shape and geometry. Normal point/line/polygon with vertices; visible in the map.
  2. Has shape and geometry, but geometry is NIL/zero-vertex.
  3. Has shape, but geometry is null.
  4. The shape field is completely null.

That makes selecting blank shapes tricky:

where 
    (sde.st_isempty(shape) = 1 
     or shape is null)

SDE.ST_GEOMETRY: Select features that have blank shapes


Questions about SDO_GEOMETRY:

  • Does SDO_GEOMETRY have the same quirks?
  • What's the best way to select blank SDO_GEOMETRIES (rows that have no vertices)?
  • Is there a single function that can be used to select blank SDO_GEOMETRIES (rows that have no vertices)?
Comments
Post Details
Added on Nov 27 2023
3 comments
588 views