<?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: How to change the geometry of a feature with code in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626793#M5580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the information!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you're looking for is &lt;/P&gt;&lt;TABLE class="memberdecls" style="font-family: Roboto, sans-serif; color: #000000;"&gt;&lt;TBODY&gt;&lt;TR class="memitem:a6c07dadbcf2540988c91a1fda78a910f"&gt;&lt;TD align="right" class="memItemLeft" style="border: none; margin: 4px; padding: 1px 0 0 8px; background-color: #fbfbfb;" valign="top"&gt;(&lt;A class="el" href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geometry.html" style="color: #7a7782; font-weight: bold;"&gt;AGSGeometry&lt;/A&gt; *) &lt;/TD&gt;&lt;TD class="memItemRight" style="border: none; margin: 4px; padding: 1px 0 0 8px; background-color: #fbfbfb;" valign="bottom"&gt;- &lt;A class="el" href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geometry_engine.html#a6c07dadbcf2540988c91a1fda78a910f" style="color: #7a7782; font-weight: bold;"&gt;differenceOfGeometry:andGeometry:&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method will return the polygon which is equal to poly1 - poly2.&lt;/P&gt;&lt;P&gt;So if you wan't to trim existing polygons to the one you added to the layer. You will need to pass the existing first and your added as second polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But first thing you will have to do is maybe buffer new geometry and then find all the polygons that this geometry intersects. This way you will get the array of neighbouring geometries. Then you just need to create a difference for each polygon in the array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 16:36:06 GMT</pubDate>
    <dc:creator>DavidLednik</dc:creator>
    <dc:date>2015-09-14T16:36:06Z</dc:date>
    <item>
      <title>How to change the geometry of a feature with code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626790#M5577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello,&lt;BR /&gt;I wonder if it was possible to modify the code by neighboring feature geometries in a geometry changed Sketchgraphic layer . I would like the neighboring geometries modified geometry is modified to fit the shape of the geometry.&lt;BR /&gt;thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;image sample : Geometry change with sketch graphic - A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;IMG alt="sample.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/126766_sample.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Stéphane&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626790#M5577</guid>
      <dc:creator>SotlarStéphane</dc:creator>
      <dc:date>2015-09-14T15:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the geometry of a feature with code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626791#M5578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Stéphane!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Not exactly sure if I understood you correctly. But you can programatically trim geometries if needed. Look at the GeometryEngine and its operations. What version of SDK are you using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;David&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626791#M5578</guid>
      <dc:creator>DavidLednik</dc:creator>
      <dc:date>2015-09-14T15:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the geometry of a feature with code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626792#M5579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi david,&lt;/P&gt;&lt;P&gt;i have look the GeometryEngine but i'have not see that i want.&lt;/P&gt;&lt;P&gt;I've the sdk version 10.2.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 16:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626792#M5579</guid>
      <dc:creator>SotlarStéphane</dc:creator>
      <dc:date>2015-09-14T16:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the geometry of a feature with code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626793#M5580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the information!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you're looking for is &lt;/P&gt;&lt;TABLE class="memberdecls" style="font-family: Roboto, sans-serif; color: #000000;"&gt;&lt;TBODY&gt;&lt;TR class="memitem:a6c07dadbcf2540988c91a1fda78a910f"&gt;&lt;TD align="right" class="memItemLeft" style="border: none; margin: 4px; padding: 1px 0 0 8px; background-color: #fbfbfb;" valign="top"&gt;(&lt;A class="el" href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geometry.html" style="color: #7a7782; font-weight: bold;"&gt;AGSGeometry&lt;/A&gt; *) &lt;/TD&gt;&lt;TD class="memItemRight" style="border: none; margin: 4px; padding: 1px 0 0 8px; background-color: #fbfbfb;" valign="bottom"&gt;- &lt;A class="el" href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geometry_engine.html#a6c07dadbcf2540988c91a1fda78a910f" style="color: #7a7782; font-weight: bold;"&gt;differenceOfGeometry:andGeometry:&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method will return the polygon which is equal to poly1 - poly2.&lt;/P&gt;&lt;P&gt;So if you wan't to trim existing polygons to the one you added to the layer. You will need to pass the existing first and your added as second polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But first thing you will have to do is maybe buffer new geometry and then find all the polygons that this geometry intersects. This way you will get the array of neighbouring geometries. Then you just need to create a difference for each polygon in the array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 16:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-change-the-geometry-of-a-feature-with-code/m-p/626793#M5580</guid>
      <dc:creator>DavidLednik</dc:creator>
      <dc:date>2015-09-14T16:36:06Z</dc:date>
    </item>
  </channel>
</rss>

