<?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: Get ST_GEOMETRY object's attribute in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1174308#M33145</link>
    <description>&lt;P&gt;1. Use dot notation:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;    sde.st_geometry('LINESTRING EMPTY', 26917)&lt;STRONG&gt;.len&lt;/STRONG&gt; as shape&lt;BR /&gt;from&lt;BR /&gt;    dual&lt;/PRE&gt;&lt;P&gt;If the shape column wasn't already wrapped in brackets via a function, then we would need to add the brackets:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;shape&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;.len&lt;BR /&gt;from&lt;BR /&gt;&amp;nbsp; &amp;nbsp; my_fc&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;2. Or, use a table alias:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;a.&lt;/STRONG&gt;shape.len&lt;BR /&gt;from&lt;BR /&gt;&amp;nbsp; &amp;nbsp; my_fc &lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;3. Or, use the TREAT() function:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;treat(&lt;/STRONG&gt;shape &lt;STRONG&gt;as sde.st_geometry)&lt;/STRONG&gt;.len&lt;BR /&gt;from&lt;BR /&gt;&amp;nbsp; &amp;nbsp; my_fc&lt;/PRE&gt;&lt;P&gt;Although that might be misguided/unnecessary, since wrapping the column in brackets achieves the same thing (brackets is my preferred technique).&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2022 20:10:27 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-06-11T20:10:27Z</dc:date>
    <item>
      <title>Get ST_GEOMETRY object's attribute</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1174306#M33144</link>
      <description>&lt;P&gt;I have an SDE.ST_GEOMETRY value (Oracle 18c):&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;    sde.st_geometry('LINESTRING EMPTY', 26917) as shape&lt;BR /&gt;from&lt;BR /&gt;    dual&lt;/PRE&gt;&lt;P&gt;I want to select one of the&amp;nbsp;ST_GEOMETRY&amp;nbsp;object's &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/stgeometry-oracle.htm" target="_self"&gt;attributes&lt;/A&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Entity&lt;/LI&gt;&lt;LI&gt;Numpts&lt;/LI&gt;&lt;LI&gt;Minx, miny, maxx, maxy&lt;/LI&gt;&lt;LI&gt;Area&lt;/LI&gt;&lt;LI&gt;Len&lt;/LI&gt;&lt;LI&gt;SRID&lt;/LI&gt;&lt;LI&gt;Points&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How can I do that with Oracle SQL?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 19:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1174306#M33144</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-16T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get ST_GEOMETRY object's attribute</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1174308#M33145</link>
      <description>&lt;P&gt;1. Use dot notation:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;    sde.st_geometry('LINESTRING EMPTY', 26917)&lt;STRONG&gt;.len&lt;/STRONG&gt; as shape&lt;BR /&gt;from&lt;BR /&gt;    dual&lt;/PRE&gt;&lt;P&gt;If the shape column wasn't already wrapped in brackets via a function, then we would need to add the brackets:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;shape&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;.len&lt;BR /&gt;from&lt;BR /&gt;&amp;nbsp; &amp;nbsp; my_fc&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;2. Or, use a table alias:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;a.&lt;/STRONG&gt;shape.len&lt;BR /&gt;from&lt;BR /&gt;&amp;nbsp; &amp;nbsp; my_fc &lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;3. Or, use the TREAT() function:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;treat(&lt;/STRONG&gt;shape &lt;STRONG&gt;as sde.st_geometry)&lt;/STRONG&gt;.len&lt;BR /&gt;from&lt;BR /&gt;&amp;nbsp; &amp;nbsp; my_fc&lt;/PRE&gt;&lt;P&gt;Although that might be misguided/unnecessary, since wrapping the column in brackets achieves the same thing (brackets is my preferred technique).&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 20:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1174308#M33145</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-11T20:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get ST_GEOMETRY object's attribute</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1177336#M33209</link>
      <description>&lt;P&gt;If I understand correctly, SDO_GEOMETRY has similar attributes. Additionally, SDO_GEOMETRY has &lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/spatial-datatypes-metadata.html#GUID-9BE85C1A-B96B-4CDB-A202-11AFFC7E9FC1" target="_self"&gt;methods (aka member functions)&lt;/A&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get_Dims&lt;/LI&gt;&lt;LI&gt;Get_GeoJson&lt;/LI&gt;&lt;LI&gt;Get_GType&lt;/LI&gt;&lt;LI&gt;Get_LRS_Dim&lt;/LI&gt;&lt;LI&gt;Get_WKB&lt;/LI&gt;&lt;LI&gt;Get_WKT&lt;/LI&gt;&lt;LI&gt;ST_CoordDim&lt;/LI&gt;&lt;LI&gt;ST_IsValid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://community.oracle.com/tech/developers/discussion/4498503/techniques-for-selecting-an-objects-attribute#latest:~:text=surround%20the%20object%20name%20in%20braces" target="_blank" rel="nofollow noopener noreferrer ugc"&gt;Techniques for selecting an object's attribute&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/72547985/replace-value-in-sdo-elem-info-array-varray" target="_self"&gt;Replace value in SDO_ELEM_INFO_ARRAY varray&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/comment/16838233" target="_self"&gt;Modify SDO_ELEM_INFO_ARRAY of existing geometry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 14:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1177336#M33209</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-09T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get ST_GEOMETRY object's attribute</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1345228#M37587</link>
      <description>&lt;P&gt;For my notes, the result from an object's attribute can be different than the result from the corresponding ST_GEOMETRY function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/geodatabase-questions/why-is-shape-entity-different-from-sde-st-entity/m-p/1343975" target="_self"&gt;Why is (SHAPE).ENTITY different from SDE.ST_ENTITY(SHAPE)?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 23:09:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/get-st-geometry-object-s-attribute/m-p/1345228#M37587</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-28T23:09:24Z</dc:date>
    </item>
  </channel>
</rss>

