Oracle 18c; 10.7.1 EGDB; SDE.ST_GEOMETRY
I can generate a feature using SQL that has a Nil (zero-vertex) geometry:

select
shape,
(shape).points as geometry,
sde.st_area(shape) as area,
sde.st_isempty(shape) as is_empty,
(shape).entity,
sde.st_entity(shape),
(shape).numpts
from
(select
sde.st_polyfromtext('POLYGON EMPTY') as shape
from
dual) As shown, there seem to be two different ways of determining the entity number using SQL:
- (SHAPE).ENTITY
- SDE.ST_ENTITY(SHAPE)
- ST_Entity SQL function
0 | nil shape |
1 | point |
2 | line (includes spaghetti lines) |
4 | linestring |
8 | area |
257 | multipoint |
258 | multiline (includes spaghetti lines) |
260 | multilinestring |
264 | multiarea |
Why does (SHAPE).ENTITY return a different value than SDE.ST_ENTITY(SHAPE)?
Should (SHAPE).ENTITY be 0, not 16, to indicate that the geometry is Nil?