<?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 What ST_Geometry function replaces SDO_NN in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/what-st-geometry-function-replaces-sdo-nn/m-p/864002#M5914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know what the equivalent in ST_Geometry functions would be for SDO_NN using Oracle 11g?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to select the 10 closes linear assets to another linear shape.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 20:49:28 GMT</pubDate>
    <dc:creator>NicoleSchleifer</dc:creator>
    <dc:date>2015-02-19T20:49:28Z</dc:date>
    <item>
      <title>What ST_Geometry function replaces SDO_NN</title>
      <link>https://community.esri.com/t5/geodatabase-questions/what-st-geometry-function-replaces-sdo-nn/m-p/864002#M5914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know what the equivalent in ST_Geometry functions would be for SDO_NN using Oracle 11g?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to select the 10 closes linear assets to another linear shape.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/what-st-geometry-function-replaces-sdo-nn/m-p/864002#M5914</guid>
      <dc:creator>NicoleSchleifer</dc:creator>
      <dc:date>2015-02-19T20:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: What ST_Geometry function replaces SDO_NN</title>
      <link>https://community.esri.com/t5/geodatabase-questions/what-st-geometry-function-replaces-sdo-nn/m-p/864003#M5915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure there is one. What I've used in the past on SQL Server is to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select all within a distance threshold&lt;/P&gt;&lt;P&gt;Order them by distance&lt;/P&gt;&lt;P&gt;select rownum = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not an expert in Oracle, but I'm in the process of migrating in to it. I'm more familiar w/ SQL Server so I don't have as much experience writing fancy queries and I still haven't learned all the functions, but something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select q.*, rownum from(
&amp;nbsp; select t1.objectid oid1, t2.objectid oid2, sde.ST_Distance(t1.shape, t2.shape)
&amp;nbsp; from table t1, table t2
&amp;nbsp; where t1.objectid &amp;lt;&amp;gt; t2.objectid
&amp;nbsp; order by sde.ST_Distance(t1.shape, t2.shape)
) q 
where rownum =1&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lot of spatial queries seem MUCH slower in Oracle compared to SQL Server, but I have a lot to learn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/what-st-geometry-function-replaces-sdo-nn/m-p/864003#M5915</guid>
      <dc:creator>JasonTipton</dc:creator>
      <dc:date>2021-12-12T10:43:49Z</dc:date>
    </item>
  </channel>
</rss>

