<?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: find features within distance in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/find-features-within-distance/m-p/589256#M7224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use GeometryEngine to create a 50m buffer around your point, then query the table&amp;nbsp;with the hydrants (ie the&amp;nbsp;Url to you mapservice + "/" + the layer id). Something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var searchPolygon = GeometryEngine.BufferGeodetic(clickPoint, 50, LinearUnits.Meters);&lt;BR /&gt; var table = new ServiceFeatureTable(new Uri("https://PathToFireHydrantSubLayer"));&lt;BR /&gt; var hydrants = await table.QueryFeaturesAsync(new QueryParameters() { Geometry = searchPolygon });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2020 19:11:44 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2020-02-12T19:11:44Z</dc:date>
    <item>
      <title>find features within distance</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/find-features-within-distance/m-p/589255#M7223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a&amp;nbsp;map&amp;nbsp;service hosted locally on my ArcGIS server with the location of all the fire hydrants in my city.&amp;nbsp; I want to know if there's a way to find the nearest hydrant to the location I click on the map.&amp;nbsp; Or to search for a hydrant within 50 meters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 22:43:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/find-features-within-distance/m-p/589255#M7223</guid>
      <dc:creator>MauricioRamirez1</dc:creator>
      <dc:date>2020-02-11T22:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: find features within distance</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/find-features-within-distance/m-p/589256#M7224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use GeometryEngine to create a 50m buffer around your point, then query the table&amp;nbsp;with the hydrants (ie the&amp;nbsp;Url to you mapservice + "/" + the layer id). Something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var searchPolygon = GeometryEngine.BufferGeodetic(clickPoint, 50, LinearUnits.Meters);&lt;BR /&gt; var table = new ServiceFeatureTable(new Uri("https://PathToFireHydrantSubLayer"));&lt;BR /&gt; var hydrants = await table.QueryFeaturesAsync(new QueryParameters() { Geometry = searchPolygon });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 19:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/find-features-within-distance/m-p/589256#M7224</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-02-12T19:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: find features within distance</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/find-features-within-distance/m-p/589257#M7225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...And if you would like to know actual travel distance/time then I suggest taking a look at the following&amp;nbsp;samples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/find-closest-facility-to-an-incident-interactive/" title="https://developers.arcgis.com/net/latest/wpf/sample-code/find-closest-facility-to-an-incident-interactive/"&gt;Find closest facility to an incident (interactive) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/find-service-area/" title="https://developers.arcgis.com/net/latest/wpf/sample-code/find-service-area/"&gt;Find service area | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/find-features-within-distance/m-p/589257#M7225</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-02-18T20:45:42Z</dc:date>
    </item>
  </channel>
</rss>

