<?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>idea Update the SDK SnapResult Class to Clarify Point Locations in ArcGIS Pro SDK Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-ideas/update-the-sdk-snapresult-class-to-clarify-point/idi-p/1103797</link>
    <description>&lt;P&gt;Update the SnapResult class to distinguish between three points:&lt;/P&gt;&lt;P&gt;- the click point;&lt;BR /&gt;- the point to which the click point is snapped if it lies within the snapping tolerance area;&lt;BR /&gt;- the point to which the click point would be snapped if it were to lie within the snapping tolerance area.&lt;/P&gt;&lt;P&gt;Here's why:&lt;/P&gt;&lt;P&gt;SnapResults are provided in the OnSketchCompleteAsync event handler.&lt;/P&gt;&lt;P&gt;If the click point is snapped to only one feature point&lt;/P&gt;&lt;P&gt;- the geometry provided to the handler is set to the snap point&lt;BR /&gt;- the first SnapResult object will provide&lt;BR /&gt;-- Layer&lt;BR /&gt;-- OID&lt;BR /&gt;-- SnapLocation&lt;BR /&gt;-- SnapType&lt;/P&gt;&lt;P&gt;where the SnapLocation is equal to the geometry location.&lt;/P&gt;&lt;P&gt;If the click point is outside the snap tolerance area&lt;/P&gt;&lt;P&gt;- the geometry will represent the click location&lt;BR /&gt;- Layer will be empty&lt;BR /&gt;- OID will be -1&lt;BR /&gt;- SnapLocation will be the point to which the click point would be snapped if it were to lie within the snapping tolerance area&lt;BR /&gt;- SnapType will be None&lt;/P&gt;&lt;P&gt;It's confusing to use the SnapLocation property in two different ways. What the SnapResults say in the second case is that no snapping occurred, but here's the snap location.&lt;/P&gt;&lt;P&gt;Furthermore, knowing the click location is sometimes helpful, but there may be no way to get it because handling the MouseDown event causes OnSketchCompleteAsync not to fire.&lt;/P&gt;&lt;P&gt;Updating the SnapResult class properties as follows would provide greater clarity along with the three potentially useful locations:&lt;/P&gt;&lt;P&gt;- Layer&lt;BR /&gt;- OID&lt;BR /&gt;- ClickPoint&lt;BR /&gt;- SnapPoint&lt;BR /&gt;- PotentialSnapPoint&lt;BR /&gt;- SnapType&lt;/P&gt;&lt;P&gt;where, using the descriptions from above,&lt;/P&gt;&lt;P&gt;- ClickPoint is the click point,&lt;BR /&gt;- SnapPoint is the point to which the click point is snapped if it lies within the snapping tolerance area, and&lt;BR /&gt;- PotentialSnapPoint is the point to which the click point would be snapped if it were to lie within the snapping tolerance area.&lt;/P&gt;&lt;P&gt;Note that "Point" is clearer than "Location" to describe what the corresponding property provides.&lt;/P&gt;&lt;P&gt;No new computation is required. I'm simply asking that the captured and computed point locations are made available and clearly distinguished.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 00:00:07 GMT</pubDate>
    <dc:creator>DavidHowes</dc:creator>
    <dc:date>2021-10-01T00:00:07Z</dc:date>
    <item>
      <title>Update the SDK SnapResult Class to Clarify Point Locations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-ideas/update-the-sdk-snapresult-class-to-clarify-point/idi-p/1103797</link>
      <description>&lt;P&gt;Update the SnapResult class to distinguish between three points:&lt;/P&gt;&lt;P&gt;- the click point;&lt;BR /&gt;- the point to which the click point is snapped if it lies within the snapping tolerance area;&lt;BR /&gt;- the point to which the click point would be snapped if it were to lie within the snapping tolerance area.&lt;/P&gt;&lt;P&gt;Here's why:&lt;/P&gt;&lt;P&gt;SnapResults are provided in the OnSketchCompleteAsync event handler.&lt;/P&gt;&lt;P&gt;If the click point is snapped to only one feature point&lt;/P&gt;&lt;P&gt;- the geometry provided to the handler is set to the snap point&lt;BR /&gt;- the first SnapResult object will provide&lt;BR /&gt;-- Layer&lt;BR /&gt;-- OID&lt;BR /&gt;-- SnapLocation&lt;BR /&gt;-- SnapType&lt;/P&gt;&lt;P&gt;where the SnapLocation is equal to the geometry location.&lt;/P&gt;&lt;P&gt;If the click point is outside the snap tolerance area&lt;/P&gt;&lt;P&gt;- the geometry will represent the click location&lt;BR /&gt;- Layer will be empty&lt;BR /&gt;- OID will be -1&lt;BR /&gt;- SnapLocation will be the point to which the click point would be snapped if it were to lie within the snapping tolerance area&lt;BR /&gt;- SnapType will be None&lt;/P&gt;&lt;P&gt;It's confusing to use the SnapLocation property in two different ways. What the SnapResults say in the second case is that no snapping occurred, but here's the snap location.&lt;/P&gt;&lt;P&gt;Furthermore, knowing the click location is sometimes helpful, but there may be no way to get it because handling the MouseDown event causes OnSketchCompleteAsync not to fire.&lt;/P&gt;&lt;P&gt;Updating the SnapResult class properties as follows would provide greater clarity along with the three potentially useful locations:&lt;/P&gt;&lt;P&gt;- Layer&lt;BR /&gt;- OID&lt;BR /&gt;- ClickPoint&lt;BR /&gt;- SnapPoint&lt;BR /&gt;- PotentialSnapPoint&lt;BR /&gt;- SnapType&lt;/P&gt;&lt;P&gt;where, using the descriptions from above,&lt;/P&gt;&lt;P&gt;- ClickPoint is the click point,&lt;BR /&gt;- SnapPoint is the point to which the click point is snapped if it lies within the snapping tolerance area, and&lt;BR /&gt;- PotentialSnapPoint is the point to which the click point would be snapped if it were to lie within the snapping tolerance area.&lt;/P&gt;&lt;P&gt;Note that "Point" is clearer than "Location" to describe what the corresponding property provides.&lt;/P&gt;&lt;P&gt;No new computation is required. I'm simply asking that the captured and computed point locations are made available and clearly distinguished.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 00:00:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-ideas/update-the-sdk-snapresult-class-to-clarify-point/idi-p/1103797</guid>
      <dc:creator>DavidHowes</dc:creator>
      <dc:date>2021-10-01T00:00:07Z</dc:date>
    </item>
  </channel>
</rss>

