<?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 Finding Points within small distance in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/finding-points-within-small-distance/m-p/359576#M9185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm stumped on this one.&amp;nbsp; I'm uploading a text file that contains a list of XY coordinates.&amp;nbsp; I show these coordinates in a ListBox and create points based on these and add them to the graphics layer on my Silverlight 4 App.&amp;nbsp; Then, the user selects a feature layer to upload these new points to.&amp;nbsp; However, before the upload occurs, a check is performed that determines whether or not a point is within a couple of inches of an existing point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the new point is within this small distance, the graphic's symbol changes and the corresponding XY coordinates in the ListBox will highlight/change color.&amp;nbsp; The user then gets the option to remove the points that are flagged like this and afterwards, the points are added to the featurelayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I'm having is determining whether or not the new points are within a few inches of existing points and then flagging them in someway that I can remove them from my original list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried using several methods involving the GeometryService, but have had very little luck.&amp;nbsp; Is there any kind of example or method that I'm not aware of that I can use?&amp;nbsp; Would I be better off making a geoprocessing tool?&amp;nbsp; I'm willing to explore any avenue here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Feb 2011 19:14:13 GMT</pubDate>
    <dc:creator>WilliamKimrey</dc:creator>
    <dc:date>2011-02-04T19:14:13Z</dc:date>
    <item>
      <title>Finding Points within small distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/finding-points-within-small-distance/m-p/359576#M9185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm stumped on this one.&amp;nbsp; I'm uploading a text file that contains a list of XY coordinates.&amp;nbsp; I show these coordinates in a ListBox and create points based on these and add them to the graphics layer on my Silverlight 4 App.&amp;nbsp; Then, the user selects a feature layer to upload these new points to.&amp;nbsp; However, before the upload occurs, a check is performed that determines whether or not a point is within a couple of inches of an existing point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the new point is within this small distance, the graphic's symbol changes and the corresponding XY coordinates in the ListBox will highlight/change color.&amp;nbsp; The user then gets the option to remove the points that are flagged like this and afterwards, the points are added to the featurelayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I'm having is determining whether or not the new points are within a few inches of existing points and then flagging them in someway that I can remove them from my original list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried using several methods involving the GeometryService, but have had very little luck.&amp;nbsp; Is there any kind of example or method that I'm not aware of that I can use?&amp;nbsp; Would I be better off making a geoprocessing tool?&amp;nbsp; I'm willing to explore any avenue here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 19:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/finding-points-within-small-distance/m-p/359576#M9185</guid>
      <dc:creator>WilliamKimrey</dc:creator>
      <dc:date>2011-02-04T19:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Points within small distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/finding-points-within-small-distance/m-p/359577#M9186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use Editor Select command to select features from your GraphicsLayer. You can try out this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice that the "New Selection" button will allow you to draw an envelope around your region of interest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can use FindGraphicsInHostCoordinates to select your graphics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;&amp;nbsp; 
GeneralTransform generalTransform = MyMap.TransformToVisual(Application.Current.RootVisual);
System.Windows.Point transformScreenPnt = generalTransform.Transform(e.GetPosition(this.MyMap));
Rect rect = new Rect(transformScreenPnt, new Size(500, 500));
var graphics = graphicsLayer.FindGraphicsInHostCoordinates(rect );
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/finding-points-within-small-distance/m-p/359577#M9186</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T16:46:57Z</dc:date>
    </item>
  </channel>
</rss>

