<?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: oracle sql query for fetching data from table with in a polygon st_geometry datatype based on coordinate in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/oracle-sql-query-for-fetching-data-from-table-with/m-p/1004833#M5688</link>
    <description>&lt;P&gt;do you have a spatial index on the shape field?&lt;/P&gt;&lt;P&gt;or possibly:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select NAME1 from GTSOWNER.CM_BOUNDARY3_PG a&amp;nbsp; where sde.st_within (sde.st_point(45.576579,26.460792,32637), a.shape)=1;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 21:10:25 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2020-11-25T21:10:25Z</dc:date>
    <item>
      <title>oracle sql query for fetching data from table with in a polygon st_geometry datatype based on coordinate</title>
      <link>https://community.esri.com/t5/developers-questions/oracle-sql-query-for-fetching-data-from-table-with/m-p/1004820#M5687</link>
      <description>&lt;P&gt;We have a featureclass containing city names and it’s border as polygon shape.The column is st_geometry. We are trying to fetch the city based on the coordinates using the below st geometry query. Even though the coordinates are exactly with in the border the query is not fetching any records.&lt;/P&gt;&lt;P&gt;select NAME1 from GTSOWNER.CM_BOUNDARY3_PG&amp;nbsp; where sde.st_within (sde.st_point(45.576579,26.460792,32637),shape)=1;&lt;/P&gt;&lt;P&gt;Tried with multiple options without any luck&lt;/P&gt;&lt;P&gt;The database is oracle. the arcGIs version is 10.2&lt;/P&gt;&lt;P&gt;Adeeb&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data type from ArcCatelog" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/992iB60713FB80D8E087/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Data type from ArcCatelog" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Data type from ArcCatelog&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spatial Reference" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/993iB59509C00CBFE9A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Spatial Reference" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Spatial Reference&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample Data in Table" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/994i3AB69736180D1667/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Sample Data in Table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sample Data in Table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 20:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/oracle-sql-query-for-fetching-data-from-table-with/m-p/1004820#M5687</guid>
      <dc:creator>AdeebFarhan</dc:creator>
      <dc:date>2020-11-25T20:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: oracle sql query for fetching data from table with in a polygon st_geometry datatype based on coordinate</title>
      <link>https://community.esri.com/t5/developers-questions/oracle-sql-query-for-fetching-data-from-table-with/m-p/1004833#M5688</link>
      <description>&lt;P&gt;do you have a spatial index on the shape field?&lt;/P&gt;&lt;P&gt;or possibly:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select NAME1 from GTSOWNER.CM_BOUNDARY3_PG a&amp;nbsp; where sde.st_within (sde.st_point(45.576579,26.460792,32637), a.shape)=1;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 21:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/oracle-sql-query-for-fetching-data-from-table-with/m-p/1004833#M5688</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-25T21:10:25Z</dc:date>
    </item>
  </channel>
</rss>

