<?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: REST find nearest feature in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294951#M11346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;You can publish the NEAR tool as a GP Tool. Portal for ArcGIS has the Find Nearest tool available OOTB.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The Near GP tool didn't work. It fails with schema is read-only error even when the near fields already exist. It also appears I would have to publish the GP tool once for each different input feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Portal tool might work. I don't have Portal installed currently so I'm stuck with my current solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;without prepare the data (Quadtree ect.) with structure&amp;nbsp;precalculated you could trivially increase the radius of the circle until it intersects at least one feature and then loop only on these. I do it for example with a soe.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is close to what I do currently. I start with a radius that is likely to return 1 feature, then double the radius until at least 1 feature is found, finally iterate the results to find the nearest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2017 15:59:10 GMT</pubDate>
    <dc:creator>PaulKroseman</dc:creator>
    <dc:date>2017-10-17T15:59:10Z</dc:date>
    <item>
      <title>REST find nearest feature</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294948#M11343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm want to query my feature service to find the feature nearest to a specific point. My current procedure is query all features within a certain radius, iterate for each feature in the result and calculate the distance to the point, then return the feature with the least distance.&lt;/P&gt;&lt;P&gt;This seems inefficient. Is there a Near/Nearest tool available to REST for doing this better, or at least requiring less code in my application?&lt;/P&gt;&lt;P&gt;Using ArcGIS Server 10.3.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294948#M11343</guid>
      <dc:creator>PaulKroseman</dc:creator>
      <dc:date>2017-10-12T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: REST find nearest feature</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294949#M11344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can publish the NEAR tool as a GP Tool. Portal for ArcGIS has the Find Nearest tool available OOTB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://server.arcgis.com/en/portal/latest/use/find-nearest.htm"&gt;http://server.arcgis.com/en/portal/latest/use/find-nearest.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the OOTB spatial analysis tools documented above were introduced at 10.4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 15:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294949#M11344</guid>
      <dc:creator>RandallWilliams</dc:creator>
      <dc:date>2017-10-13T15:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: REST find nearest feature</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294950#M11345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;without prepare the data (Quadtree ect.) with structure&amp;nbsp;precalculated you could trivially increase the radius of the circle until it intersects at least one feature and then loop only on these. I do it for example with a soe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 16:17:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294950#M11345</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2017-10-13T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST find nearest feature</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294951#M11346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;You can publish the NEAR tool as a GP Tool. Portal for ArcGIS has the Find Nearest tool available OOTB.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The Near GP tool didn't work. It fails with schema is read-only error even when the near fields already exist. It also appears I would have to publish the GP tool once for each different input feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Portal tool might work. I don't have Portal installed currently so I'm stuck with my current solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;without prepare the data (Quadtree ect.) with structure&amp;nbsp;precalculated you could trivially increase the radius of the circle until it intersects at least one feature and then loop only on these. I do it for example with a soe.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is close to what I do currently. I start with a radius that is likely to return 1 feature, then double the radius until at least 1 feature is found, finally iterate the results to find the nearest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:59:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/294951#M11346</guid>
      <dc:creator>PaulKroseman</dc:creator>
      <dc:date>2017-10-17T15:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST find nearest feature</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/1356969#M37863</link>
      <description>&lt;P&gt;Is this still really true? seems completely ridiculous to have an underlying spatial database like postgis/postgresql and not be able to leverage a basic "nearest" query without publishing a custom GP tool...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:44:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-find-nearest-feature/m-p/1356969#M37863</guid>
      <dc:creator>rylincoln</dc:creator>
      <dc:date>2023-12-05T17:44:37Z</dc:date>
    </item>
  </channel>
</rss>

