<?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 how to get the lat and long from feature table in Oracle DB in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492671#M45241</link>
    <description>&lt;P&gt;Hi I heard that in MS SQL, we can do the following&lt;/P&gt;&lt;PRE&gt;select shape, shape.STX as LONG, shape.STY as LAT from sde.fc&lt;/PRE&gt;&lt;P&gt;If my Geodatabase is in Oracle, and how can I get the STX and STY from the shape column. I tried the above and it return&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORA-00904: "SHAPE"."STX": invalid identifier&lt;BR /&gt;00904. 00000 - "%s: invalid identifier"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 12:40:43 GMT</pubDate>
    <dc:creator>DRae</dc:creator>
    <dc:date>2024-06-14T12:40:43Z</dc:date>
    <item>
      <title>how to get the lat and long from feature table in Oracle DB</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492671#M45241</link>
      <description>&lt;P&gt;Hi I heard that in MS SQL, we can do the following&lt;/P&gt;&lt;PRE&gt;select shape, shape.STX as LONG, shape.STY as LAT from sde.fc&lt;/PRE&gt;&lt;P&gt;If my Geodatabase is in Oracle, and how can I get the STX and STY from the shape column. I tried the above and it return&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORA-00904: "SHAPE"."STX": invalid identifier&lt;BR /&gt;00904. 00000 - "%s: invalid identifier"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 12:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492671#M45241</guid>
      <dc:creator>DRae</dc:creator>
      <dc:date>2024-06-14T12:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the lat and long from feature table in Oracle DB</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492704#M45242</link>
      <description>&lt;P&gt;If you have ST_Geometry configured (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-oracle/configure-oracle-extproc.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-oracle/configure-oracle-extproc.htm&lt;/A&gt;) you could use ST functions to do this:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-oracle/stgeometry-oracle.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-oracle/stgeometry-oracle.htm&lt;/A&gt;&amp;nbsp;(reference doc:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/pdf/stgeometry_reference.pdf" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/databases/pdf/stgeometry_reference.pdf &lt;/A&gt;- look at p336 (ST_X / ST_Y).&lt;/P&gt;&lt;P&gt;That would be where I would start.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 13:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492704#M45242</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2024-06-14T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the lat and long from feature table in Oracle DB</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492706#M45243</link>
      <description>&lt;P&gt;Thanks. I am able to do as below&lt;/P&gt;&lt;P&gt;select sde.st_x(shape) from fc&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 13:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492706#M45243</guid>
      <dc:creator>DRae</dc:creator>
      <dc:date>2024-06-14T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the lat and long from feature table in Oracle DB</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492751#M45244</link>
      <description>&lt;P&gt;Note that you should &lt;U&gt;&lt;EM&gt;never&lt;/EM&gt;&lt;/U&gt; store user data in the SDE schema, so the "&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;from sde.fc&lt;/STRONG&gt;&lt;/FONT&gt;" part is a problem. Best practice is to create a new login to own spatial data (and a new tablespace to store the data for that login).&amp;nbsp; Using the SDE login for this is akin to using SYSTEM or DBO for noodling, or web surfing the dark net as administrator -- It's not likely to end well.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 14:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-get-the-lat-and-long-from-feature-table-in/m-p/1492751#M45244</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2024-06-14T14:35:36Z</dc:date>
    </item>
  </channel>
</rss>

