<?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 Re: Is it ok to store ST_POLYFROMTEXT in ST_GEOMETRY shape column? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352072#M8689</link>
    <description>&lt;P&gt;Are you using this reference guide?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/pdf/stgeometry_reference.pdf" target="_blank"&gt;stgeometry_reference.pdf (arcgis.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 16:45:43 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-11-21T16:45:43Z</dc:date>
    <item>
      <title>Is it ok to store ST_POLYFROMTEXT in ST_GEOMETRY shape column?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352000#M8688</link>
      <description>&lt;P&gt;&lt;EM&gt;Oracle 18; 10.7.1 EGDB; SDE.ST_GEOMETRY&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I can create empty features in a polygon FC using ST_GEOMETRY SQL functions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1700579744448.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86715i0DD172EF1F78580C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1700579744448.png" alt="Bud_1-1700579744448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1700579708726.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86714i448CB52D159D37AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1700579708726.png" alt="Bud_0-1700579708726.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#999999"&gt;--The first feature was created using editing tools in ArcGIS Pro. The feature has shape and geometry. It's a normal polygon; visible in the map.

--The second feature:
insert into infrastr.a_test_fc_2 (objectid, shape) values (
    sde.gdb_util.next_rowid('INFRASTR', 'A_TEST_FC_2'),
    sde.st_polyfromtext('POLYGON EMPTY',26917));
commit;    

--The third feature:
insert into infrastr.a_test_fc_2 (objectid, shape) values (
    sde.gdb_util.next_rowid('INFRASTR', 'A_TEST_FC_2'),
    sde.st_geomfromtext('POLYGON EMPTY',26917));
commit;    

--select objectid,shape from infrastr.a_test_fc_2 order by objectid;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The shapes that I created using SQL INSERTS are being shown differently in SQL Developer than a feature that was created in ArcGIS Pro using editing tools:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;ArcGIS Pro editing tools:&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;[SDE.ST_GEOMETRY]&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;sde.st_polyfromtext():&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;[SDE.ST_POLYFROMTEXT]&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;sde.st_geomfromtext():&amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;[SDE.ST_GEOMFROMTEXT]&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Will storing shapes as&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;[SDE.ST_POLYFROMTEXT]&lt;/FONT&gt; or&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;[SDE.ST_GEOMFROMTEXT]&lt;/FONT&gt;&amp;nbsp;cause any issues? Or should I somehow convert them to&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;[SDE.ST_GEOMETRY]&lt;/FONT&gt; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 15:26:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352000#M8688</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-21T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it ok to store ST_POLYFROMTEXT in ST_GEOMETRY shape column?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352072#M8689</link>
      <description>&lt;P&gt;Are you using this reference guide?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/pdf/stgeometry_reference.pdf" target="_blank"&gt;stgeometry_reference.pdf (arcgis.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 16:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352072#M8689</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-11-21T16:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it ok to store ST_POLYFROMTEXT in ST_GEOMETRY shape column?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352131#M8690</link>
      <description>&lt;P&gt;Thanks for the reminder. I've read that PDF in the past. It seems to have the same content as&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geometry.htm," target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geometry.htm,&lt;/A&gt;&amp;nbsp;but in PDF form.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 18:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352131#M8690</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-21T18:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it ok to store ST_POLYFROMTEXT in ST_GEOMETRY shape column?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352223#M8692</link>
      <description>&lt;P&gt;In a reply to&amp;nbsp;&lt;A href="https://community.esri.com/t5/geodatabase-questions/create-nil-zero-vertex-geometry/m-p/1352208/highlight/true#M8691" target="_self"&gt;Create NIL (zero vertex) geometry&lt;/A&gt;, I mention that &lt;A href="https://support.esri.com/en-us/knowledge-base/bug-unable-to-define-a-query-layer-in-arcgis-where-the-000011333" target="_self"&gt;this bug&lt;/A&gt;&amp;nbsp;has been updated. It now suggests that we use the&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geometry.htm" target="_self"&gt;st_geometry constructor&lt;/A&gt; to convert from subtypes to supertypes. Which seems to work for converting&amp;nbsp;&lt;SPAN&gt;[SDE.ST_POLYFROMTEXT] to&amp;nbsp;[SDE.ST_GEOMETRY].&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 20:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/is-it-ok-to-store-st-polyfromtext-in-st-geometry/m-p/1352223#M8692</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-21T20:21:40Z</dc:date>
    </item>
  </channel>
</rss>

