<?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 SelectXY selecting feature even if X, Y not on feature in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/selectxy-selecting-feature-even-if-x-y-not-on/m-p/532278#M3838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In ArcPad 10, I have the following issue (Not tested on other versions of ArcPad):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do an OnPointerdown event, and use the Map.X and Map.Y to do a spatial select, the system selects the correct feature (a polygon) every time.&amp;nbsp; If I click outside of the feature, then it is not selected, as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, if I create a point, and then later use this point coordinates (by means of ObjShp.X, ObjShp.Y) to do a selectXY on a polygon layer, then a polygon is selected even if the point is not on the polygon (Almost as if the point is being snapped to the polygon).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried populating an X and Y field when creating the point, and then using these values to do SelectXY, but with the same (incorrect) results. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas anyone?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 07:36:11 GMT</pubDate>
    <dc:creator>EddieViljoen</dc:creator>
    <dc:date>2011-07-20T07:36:11Z</dc:date>
    <item>
      <title>SelectXY selecting feature even if X, Y not on feature</title>
      <link>https://community.esri.com/t5/arcpad-questions/selectxy-selecting-feature-even-if-x-y-not-on/m-p/532278#M3838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In ArcPad 10, I have the following issue (Not tested on other versions of ArcPad):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do an OnPointerdown event, and use the Map.X and Map.Y to do a spatial select, the system selects the correct feature (a polygon) every time.&amp;nbsp; If I click outside of the feature, then it is not selected, as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, if I create a point, and then later use this point coordinates (by means of ObjShp.X, ObjShp.Y) to do a selectXY on a polygon layer, then a polygon is selected even if the point is not on the polygon (Almost as if the point is being snapped to the polygon).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried populating an X and Y field when creating the point, and then using these values to do SelectXY, but with the same (incorrect) results. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas anyone?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 07:36:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/selectxy-selecting-feature-even-if-x-y-not-on/m-p/532278#M3838</guid>
      <dc:creator>EddieViljoen</dc:creator>
      <dc:date>2011-07-20T07:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: SelectXY selecting feature even if X, Y not on feature</title>
      <link>https://community.esri.com/t5/arcpad-questions/selectxy-selecting-feature-even-if-x-y-not-on/m-p/532279#M3839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, problem found, and work-around implemented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need to know is that SelectXY only works on the features that are currently on the screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I figured that out early on, and then implemented a "zoom to full extent" before running the selectXY.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This created a different problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SelectXY uses a tolerance of x pixels, so if you zoom out too far, the point will be within this tolerance, even though it is outside of the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set the tolerance to zero, but then it becomes virtually impossible to click on any points (if you need to do that elsewhere), so it is not really a sollution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I did, was to zoom to a specific scale programatically (i.e. 1:10 000 in my case), and then centre the map on the X,Y of the point that I am working with.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not the cleanest or quickest, but it seems to work OK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/selectxy-selecting-feature-even-if-x-y-not-on/m-p/532279#M3839</guid>
      <dc:creator>EddieViljoen</dc:creator>
      <dc:date>2011-07-20T12:03:45Z</dc:date>
    </item>
  </channel>
</rss>

