<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea ST_Geometry — Don't allow null geometry in Data Management Ideas</title>
    <link>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idi-p/1342907</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.6.8, Oracle 18c 10.7.1 EGDB; SDE.ST_Geometry&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I understand correctly, a feature can either have:&lt;/P&gt;&lt;OL class="lia-list-style-type-upper-alpha"&gt;&lt;LI&gt;Null SHAPE field, or&lt;/LI&gt;&lt;LI&gt;SHAPE field is not null, only the geometry is null&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It is confusing when we need to account for both A and B in SQL queries. I can't think of a use case where B is wanted.&lt;/P&gt;&lt;P&gt;Could the SDE.ST_Geometry database datatype be enhanced so that B is prevented/not allowed?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/attribute-table-indicate-if-shape-field-is-null-vs/idi-p/1342903" target="_self"&gt;Attribute Table — Indicate if SHAPE field is null vs. object's geometry is empty&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Nov 2023 05:40:50 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-11-18T05:40:50Z</dc:date>
    <item>
      <title>ST_Geometry — Don't allow null geometry</title>
      <link>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idi-p/1342907</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.6.8, Oracle 18c 10.7.1 EGDB; SDE.ST_Geometry&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I understand correctly, a feature can either have:&lt;/P&gt;&lt;OL class="lia-list-style-type-upper-alpha"&gt;&lt;LI&gt;Null SHAPE field, or&lt;/LI&gt;&lt;LI&gt;SHAPE field is not null, only the geometry is null&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It is confusing when we need to account for both A and B in SQL queries. I can't think of a use case where B is wanted.&lt;/P&gt;&lt;P&gt;Could the SDE.ST_Geometry database datatype be enhanced so that B is prevented/not allowed?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/attribute-table-indicate-if-shape-field-is-null-vs/idi-p/1342903" target="_self"&gt;Attribute Table — Indicate if SHAPE field is null vs. object's geometry is empty&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 05:40:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idi-p/1342907</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-18T05:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Geometry — Don't allow empty geometry (not to be confused with null SHAPE column)</title>
      <link>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1342943#M2274</link>
      <description>&lt;P&gt;A NIL (zero vertex) geometry is a valid shape type. It is required for some operations (e.g., the result of the intersection of two disjoint features).&amp;nbsp; &amp;nbsp;The shapefile specification permits Nil paired with any other one geometry type as the supported types in shapefiles.&lt;/P&gt;&lt;P&gt;How would it be an "enhancement" to remove this capability?&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 20:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1342943#M2274</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2023-10-27T20:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Geometry — Don't allow empty geometry</title>
      <link>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1344071#M2276</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1060"&gt;@VinceAngelo&lt;/a&gt;&amp;nbsp;To clarify:&lt;/P&gt;&lt;P&gt;I think I understand your point about Nil geometry (row #2 below).&lt;/P&gt;&lt;P&gt;However, I'm referring to cases where the geometry is truly null/no value (row #3 below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1698778016602.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84605i2A0C14D79B80C48B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1698778016602.png" alt="Bud_0-1698778016602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;select
    objectid,
    shape,
    (shape).points as geometry,
    sde.st_area(shape) as area,
    sde.st_isempty(shape) as is_empty,
    comment3,
    (shape).entity,
    sde.st_entity(shape),
    (shape).numpts
from
    infrastr.inf_record_sp&lt;/PRE&gt;&lt;P&gt;Let me know if I've misunderstood something.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 18:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1344071#M2276</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-10-31T18:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Geometry — Don't allow empty geometry</title>
      <link>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1344243#M2277</link>
      <description>&lt;P&gt;I don't use regularly use SDE.ST_GEOMETRY.&lt;/P&gt;&lt;P&gt;How did you create those rows, because at least one of them seems malformed.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 03:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1344243#M2277</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2023-11-01T03:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Geometry — Don't allow empty geometry</title>
      <link>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1345645#M2282</link>
      <description>&lt;P&gt;Regarding,&lt;EM&gt;"How did you create those rows, because at least one of them seems malformed."&lt;BR /&gt;&lt;/EM&gt;The features were all created using OOTB functionality in ArcMap or ArcGIS Pro. We don't create features using code (Python, SQL, etc.). Beyond that, I don't have information about how specific features were formed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A follow-up point regarding the original idea: The ST_GEOMETRY db datatype allows a feature to be constructed with a null geometry using SQL:&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#999999"&gt;insert into infrastr.inf_record_sp (objectid, shape) values (
&amp;nbsp;&amp;nbsp;&amp;nbsp; sde.gdb_util.next_rowid('MY_OWNER', 'MY_TABLE'), &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;--objectid
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#000000"&gt;sde.st_geometry(16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300046, &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&lt;/FONT&gt;));&lt;/FONT&gt; --shape
commit;&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I can query the new row to see what it looks like. It is in state #3 (geometry is null).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1699030194686.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84992i551B9E98476CD74F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1699030194686.png" alt="Bud_0-1699030194686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To me, the ST_GEOMETRY db datatype should not allow a feature to be constructed with a null geometry using SQL. Maybe that's a bug.&lt;BR /&gt;I wonder if there should be a constraint: &lt;EM&gt;If the shape is not null, then don't allow the geometry to be null when creating features.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 05:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/st-geometry-don-t-allow-null-geometry/idc-p/1345645#M2282</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-18T05:44:47Z</dc:date>
    </item>
  </channel>
</rss>

