<?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: Nearest Feature in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1523236#M11968</link>
    <description>&lt;P&gt;&lt;SPAN&gt;IIndexQuery takes&amp;nbsp;IFeatureIndex.FeatureClass is my target FeatureLayer so IIndexQuery.NearestFeature will return the feature ID of the target layer. Pro SDK NearestPoint function takes geometry—the objective is to find the nearest feature ID from a specific featurelayer. If I know the geometry my problem is resolved.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 04:29:40 GMT</pubDate>
    <dc:creator>sonj</dc:creator>
    <dc:date>2024-08-19T04:29:40Z</dc:date>
    <item>
      <title>Nearest Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1522797#M11964</link>
      <description>&lt;P&gt;In arcobjects we used to find the nearestfeature using&amp;nbsp;IIndexQuery. Is there similar functionality in Pro SDK? If not what is the best process to find the "NearestFeature"&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 11:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1522797#M11964</guid>
      <dc:creator>sonj</dc:creator>
      <dc:date>2024-08-16T11:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1522994#M11966</link>
      <description>&lt;P&gt;Have you looked into the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic8269.html" target="_self"&gt;GeometryEngine.Instance.NearestPoint?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 16:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1522994#M11966</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-08-16T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1523236#M11968</link>
      <description>&lt;P&gt;&lt;SPAN&gt;IIndexQuery takes&amp;nbsp;IFeatureIndex.FeatureClass is my target FeatureLayer so IIndexQuery.NearestFeature will return the feature ID of the target layer. Pro SDK NearestPoint function takes geometry—the objective is to find the nearest feature ID from a specific featurelayer. If I know the geometry my problem is resolved.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 04:29:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1523236#M11968</guid>
      <dc:creator>sonj</dc:creator>
      <dc:date>2024-08-19T04:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1524201#M11981</link>
      <description>&lt;P&gt;Is there anyone here that can assist me? I did some research on Analysis.Near(). The functionality is almost exactly what we need, except it updates the closest feature ID and adds new fields. We have no desire to update client data.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 07:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1524201#M11981</guid>
      <dc:creator>sonj</dc:creator>
      <dc:date>2024-08-20T07:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1524357#M11983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create temporary GDB for Analysis.Near(). Clean and fill it with your analysis data each time.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 13:19:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1524357#M11983</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-08-20T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1584851#M12631</link>
      <description>&lt;P&gt;The Analysis.Near code is executing but the Point layer is not updating.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;await QueuedTask.Run(async () =&amp;gt;
{
	Table targetFeatureTable = targetFeatureLayer.GetTable();
	string pointFeaturePath = pointFeatureClass.GetPath().ToString();  // point feature layer
	string targetFeaturePath = targetFeatureTable.GetPath().ToString();  // polyline feature layer                
	
	var environments = Geoprocessing.MakeEnvironmentArray(overwriteoutput: true);

	var parameters = Geoprocessing.MakeValueArray(pointFeaturePath, targetFeaturePath, "NO_LOCATION", "NO_ANGLE", "PLANAR", "NEAR_FID NEAR_FID;NEAR_DIST NEAR_DIST");
	IGPResult result = await Geoprocessing.ExecuteToolAsync("analysis.Near", parameters, environments);

	// Check the result
	if (result.IsFailed)
	{
		throw new Exception("Near tool execution failed: " + result.ErrorMessages);
	}

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 12:41:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1584851#M12631</guid>
      <dc:creator>sonj</dc:creator>
      <dc:date>2025-02-13T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nearest Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1586031#M12649</link>
      <description>&lt;P&gt;It is working by changing the parameters. It may be helpful to others hence sharing code snippet.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var parameters = Geoprocessing.MakeValueArray(pointFeatureClass, targetFeatureLayer, "NEAR_FID NEAR_FID;NEAR_DIST NEAR_DIST");&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 17 Feb 2025 13:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/nearest-feature/m-p/1586031#M12649</guid>
      <dc:creator>sonj</dc:creator>
      <dc:date>2025-02-17T13:49:39Z</dc:date>
    </item>
  </channel>
</rss>

