<?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>topic Create feature that has a shape, but geometry is null in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/create-feature-that-has-a-shape-but-geometry-is/m-p/1343924#M8662</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;SPAN&gt;&lt;BR /&gt;It seems like there are four different states a feature can be in:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Has shape and geometry. Normal polygon; visible in map.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry's points blob can be considered a list of coordinates like "(1,2 3,4 5,6)".&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Has shape and geometry, but&amp;nbsp;AREA and NUMPTS are zero (geometry is NIL/zero vertex).&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry's points blob can be considered an empty list of coordinates like "( , )".&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/geodatabase-questions/create-nil-zero-vertex-geometry/m-p/1343655/" target="_self"&gt;&lt;SPAN&gt;Create NIL (zero vertex) geometry&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Has shape, but no geometry.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry is null.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Shape field is completely null.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry is null.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1698766836737.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84576iEFAFB0B061BDB181/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1698766836737.png" alt="Bud_0-1698766836737.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;Question:&lt;/P&gt;&lt;P&gt;For testing purposes, how can I create a feature like the one in state #3, where the shape is not null, but the geometry is null?&lt;/P&gt;&lt;P&gt;I'm hoping to create such a feature using SQL. But I'm open to other techniques, too.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 19:00:18 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-11-02T19:00:18Z</dc:date>
    <item>
      <title>Create feature that has a shape, but geometry is null</title>
      <link>https://community.esri.com/t5/geodatabase-questions/create-feature-that-has-a-shape-but-geometry-is/m-p/1343924#M8662</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;SPAN&gt;&lt;BR /&gt;It seems like there are four different states a feature can be in:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Has shape and geometry. Normal polygon; visible in map.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry's points blob can be considered a list of coordinates like "(1,2 3,4 5,6)".&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Has shape and geometry, but&amp;nbsp;AREA and NUMPTS are zero (geometry is NIL/zero vertex).&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry's points blob can be considered an empty list of coordinates like "( , )".&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/geodatabase-questions/create-nil-zero-vertex-geometry/m-p/1343655/" target="_self"&gt;&lt;SPAN&gt;Create NIL (zero vertex) geometry&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Has shape, but no geometry.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry is null.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Shape field is completely null.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Geometry is null.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1698766836737.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84576iEFAFB0B061BDB181/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1698766836737.png" alt="Bud_0-1698766836737.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;Question:&lt;/P&gt;&lt;P&gt;For testing purposes, how can I create a feature like the one in state #3, where the shape is not null, but the geometry is null?&lt;/P&gt;&lt;P&gt;I'm hoping to create such a feature using SQL. But I'm open to other techniques, too.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 19:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/create-feature-that-has-a-shape-but-geometry-is/m-p/1343924#M8662</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-02T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create feature that has a shape, but geometry is null</title>
      <link>https://community.esri.com/t5/geodatabase-questions/create-feature-that-has-a-shape-but-geometry-is/m-p/1345626#M8671</link>
      <description>&lt;P&gt;I think I found a way to do it using SQL:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&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; sde.st_geometry(16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300046, &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;null&lt;/FONT&gt;&lt;/STRONG&gt;)); --shape
commit;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/next-rowid.htm" target="_blank" rel="noopener"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/next-rowid.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can query the new row to see what it looks like. It is in state #3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1699028304848.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84987iDBB9C0AF44EBE688/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1699028304848.png" alt="Bud_0-1699028304848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I edit that row using ArcGIS Pro (even just edit a non-spatial field), then Pro will automatically change it to state #2: geometry is not null.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 16:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/create-feature-that-has-a-shape-but-geometry-is/m-p/1345626#M8671</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-03T16:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create feature that has a shape, but geometry is null</title>
      <link>https://community.esri.com/t5/geodatabase-questions/create-feature-that-has-a-shape-but-geometry-is/m-p/1348071#M8683</link>
      <description>&lt;P&gt;It's also possible to import an XML Workspace Document that has features with "shape but no geometry". The geometry remains null upon import.&lt;/P&gt;&lt;P&gt;Of course, you'd need to have some features that are "shape but no geometry" to export in the first place. Importing an&amp;nbsp;XML Workspace Document creates a new FC; we can't import to an existing FC.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 00:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/create-feature-that-has-a-shape-but-geometry-is/m-p/1348071#M8683</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-10T00:32:33Z</dc:date>
    </item>
  </channel>
</rss>

