ArcGIS Pro 2.6.8; Oracle 18c; 10.7.1 EGDB; SDE.ST_GEOMETRY
Background:
There seem to be four different states a feature can be in:
- Has shape and geometry. Normal polygon; visible in the map.
- Geometry's points blob can be considered a list of coordinates like "(1,2 3,4 5,6)".
Has shape and geometry, but AREA and NUMPTS are zero (geometry is NIL/zero vertex).Has shape, but no geometry.- Geometry is null.
- Esri Support thinks these features are valid.
- Esri Case #03477586 - Are these features valid? Features have SHAPE but geometry is null.
- It sounds like ST_GEOMETRY SQL functions have been designed/fixed to handle such features (Support provided details about the bug that would suggest this):
BUG-000090937: Invalid (NULL) LOB locator (points) errors are returned when running the ST_Geometry function against geometries without binary large object (BLOB) points. - It is possible to INSERT features that have a null geometry using SQL. The ST_GEOMETRY db datatype does not prevent null geometries from being inserted.
insert into infrastr.inf_record_sp (objectid, shape) values (
sde.gdb_util.next_rowid('INFRASTR', 'INF_RECORD_SP'),
SDE.ST_GEOMETRY(16,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,300046,NULL));
commit;
Similarly, it’s possible to import such features from an XML Workspace Document; the geometry remains in state 3. However, other operations in ArcGIS Pro will automatically convert state 3 features to state 2, such as when editing in the attribute table (even when editing a non-spatial field).
The shape field is completely null.- Geometry is null.
- Example: If a user hits “Click to add new row” in the attribute table, then the shape will be null unless the user edits/creates a shape.
Summary Query:

Question:
What is the correct way to query for features that have blank shapes? In other words, I want to query for states 2, 3, and 4 (but not state 1). A simple "WHERE SHAPE IS NULL" query won't do what I want; it won't select states 2 and 3 since SHAPE isn't null.
Related:
Oracle Docs: 2.1.1 Null Objects and Attributes