<?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: Visible precision errors when clipping using AGSGeometryEngine.difference in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219109#M7469</link>
    <description>&lt;P&gt;What spatial reference is your map using, and what spatial reference is the layer/service published in?&lt;BR /&gt;Can you provide a small project that reproduces this problem? You can DM me directly if you don't want to share that publicly&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 20:25:54 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2022-10-05T20:25:54Z</dc:date>
    <item>
      <title>Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1218556#M7461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to figure out an issue we are having relating to clipping overlapping geometries in features. When we add new features with geometries, we allow the user to "clip" the new geometry with others that overlap the new geometry. We use&amp;nbsp;AGSGeometryEngine.difference to create a new geometry and then store the new feature. However, the resulting geometry is then adjusted by the SDK (I believe the issue could be the featureTable.addFeature-method "simplifying" the geometry when saving, the docs mentions this).&lt;/P&gt;&lt;P&gt;The end result is a visible error in precision with either overlap or gaps between the geometries. Does anyone know of a way around this or are we hitting some precision limit in the spatial reference being used here? It only happens when being in "online" mode, if we work on offline-maps, all is well - until we go online &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had a theory the problem was we were comparing already saved geometries with unsaved, and that if we created the new feature first, then clipped it would work better, but it does not seem to matter.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 13:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1218556#M7461</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2022-10-04T13:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1218805#M7463</link>
      <description>&lt;P&gt;Can you provide a screenshot or two showing the problem?&lt;BR /&gt;&lt;BR /&gt;I'm a little puzzled that things work correctly offline, but then you see the problems when you're connected.&lt;BR /&gt;&lt;BR /&gt;Can you try setting the map's &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geo_model.html#a393e662d25ac0b5fd4157667ddd1273b" target="_self"&gt;load settings&lt;/A&gt; to &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_load_settings.html#a5f6d1eb85eeaabb610d392cefd88f1e4" target="_self"&gt;disable feature tiles&lt;/A&gt;&amp;nbsp;and see if that makes a difference?&lt;BR /&gt;My guess is that the issue is related to the usage of feature tiles to display the layer in connected mode. The geometries in feature tiles are quantized for various scale levels to get the most performance, perhaps this is causing the problem which we'd need to investigate further&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 20:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1218805#M7463</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2022-10-04T20:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1218905#M7467</link>
      <description>&lt;P&gt;Here are some screenshots of what I am seeing.&lt;/P&gt;&lt;P&gt;I thought I saw an improvement when zooming in before clipping and then back out after, but that had no effect.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The new area in red, will be clipped by the blue" style="width: 504px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52881i532AF75D44F7CD61/image-size/large?v=v2&amp;amp;px=999" role="button" title="create area.png" alt="The new area in red, will be clipped by the blue" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The new area in red, will be clipped by the blue&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The new area is created and I just zoomed in on the edge in the green area" style="width: 489px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52882iFECDCF5AA770749C/image-size/large?v=v2&amp;amp;px=999" role="button" title="zoom in after creation.png" alt="The new area is created and I just zoomed in on the edge in the green area" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The new area is created and I just zoomed in on the edge in the green area&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1218905#M7467</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2022-10-05T11:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219109#M7469</link>
      <description>&lt;P&gt;What spatial reference is your map using, and what spatial reference is the layer/service published in?&lt;BR /&gt;Can you provide a small project that reproduces this problem? You can DM me directly if you don't want to share that publicly&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 20:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219109#M7469</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2022-10-05T20:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219244#M7471</link>
      <description>&lt;P&gt;As far as I can tell we are using&amp;nbsp;25833 on the map and its operational layers. What I have discovered though is that if we access the data via a webmap/portal/item the clipping seems to work as intended, but if we access the service directly via url the problem appears. I will test this now and try to make a test service/layer publicly available and write a simplified app to test it. I will send you an update when I have something.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 08:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219244#M7471</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2022-10-06T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219308#M7472</link>
      <description>&lt;P&gt;Just a small update. I got the demo app working by setting up a empty map and just inserted a feature layer by URL on a public feature layer. I had hoped this would show the error but actually it does not. So far I have a test app using a web map, not having the issue and a test app without a web map just using a feature layer directly, still fine.&lt;BR /&gt;&lt;BR /&gt;I think I will halt it there and shift focus away from the clip operation itself and rather look at how the map is set up in the problematic apps, it could very well be that the problem is not where I thought it was after all. Well, I'll post an update if I figure it out. Thanks for the help so far.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 13:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219308#M7472</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2022-10-06T13:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219445#M7473</link>
      <description>&lt;P&gt;Ok. Let us know what you find.&amp;nbsp;&lt;BR /&gt;Also make sure that feature you are using to clip the sketch geometry is loaded (you cn use AGSArcGISFeature.load() to load it). This will ensure the feature has the full resolution geometry for cases when feature tiles are being used to optimize the display&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1219445#M7473</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2022-10-06T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1249821#M7542</link>
      <description>&lt;P&gt;Small update to the issue, I am revisiting the issue and I have verified the problem also occurs working on web maps. I will do further testing.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 08:42:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1249821#M7542</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2023-01-20T08:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1249824#M7543</link>
      <description>&lt;P&gt;I have now tried to load each feature in play here, but it seems to have no effect. After the operation we do a featureTable.update with the feature getting the new geometry and I see that the following is mentioned in the method description:&lt;BR /&gt;&lt;BR /&gt;"Updating a feature that contains an &lt;SPAN&gt;@c &lt;/SPAN&gt;&lt;SPAN&gt;AGSGeometry&lt;BR /&gt;&lt;/SPAN&gt;causes the geometry to become simplified. This may change a single part geometry to a multipart&lt;BR /&gt;geometry, or round off X, Y, Z, and M coordinate values that are above the resolution set by the&lt;BR /&gt;&lt;SPAN&gt;@c &lt;/SPAN&gt;AGSSpatialReference."&lt;BR /&gt;&lt;BR /&gt;Could this be the root cause?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 09:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1249824#M7543</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2023-01-20T09:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1250298#M7544</link>
      <description>&lt;P&gt;Curious update: Just noticed that if I do a clip (using difference) extra it seems that the object that used to have the gap/overlap issue is moved correctly. I will examine this further. This is just weird. And to be clear: the gap/overlap issue is an issue because the data is processed later on the backend so overlap is flagged as an error, so this is not a visual bug.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 07:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1250298#M7544</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2023-01-23T07:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Visible precision errors when clipping using AGSGeometryEngine.difference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1252776#M7551</link>
      <description>&lt;P&gt;Just wanted to specify the (possible solution), by doing the additional clipping: here I meant to first do the difference with object A and B and then perform the opposite difference, object B and A. Specifically Load() then set the new geometry (result from difference()) and perform Update() after each clip, then finish with applyEdits() when both operations are complete. This seems to move everything in the correct place without gaps or overlaps.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 08:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/visible-precision-errors-when-clipping-using/m-p/1252776#M7551</guid>
      <dc:creator>frankm</dc:creator>
      <dc:date>2023-01-30T08:05:38Z</dc:date>
    </item>
  </channel>
</rss>

