<?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 Advanced Editing in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advanced-editing/m-p/474751#M44057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking into the possibility of offering staff an online edit tool to replace our current ArcGIS desktop work flow that many staff are having problems learning. The basic editor that is offered in the JS or Flex viewer offers most of what I require but I haven't been able to find a solution to clipping one polygon with another. Essentially I need to be able to draw a bounding box around an area and then draw smaller polygons over top that would be clipped out of the underlying bounding polygon. Think clipping a house out of a yard for example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can this be done?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 14:46:35 GMT</pubDate>
    <dc:creator>AndrewPratt</dc:creator>
    <dc:date>2013-09-25T14:46:35Z</dc:date>
    <item>
      <title>Advanced Editing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advanced-editing/m-p/474751#M44057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking into the possibility of offering staff an online edit tool to replace our current ArcGIS desktop work flow that many staff are having problems learning. The basic editor that is offered in the JS or Flex viewer offers most of what I require but I haven't been able to find a solution to clipping one polygon with another. Essentially I need to be able to draw a bounding box around an area and then draw smaller polygons over top that would be clipped out of the underlying bounding polygon. Think clipping a house out of a yard for example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can this be done?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 14:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advanced-editing/m-p/474751#M44057</guid>
      <dc:creator>AndrewPratt</dc:creator>
      <dc:date>2013-09-25T14:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Editing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advanced-editing/m-p/474752#M44058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't have the code, but this is what I would try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first of all, you don't need to use editor to edit features, you can just use featureLayer.applyEdits() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1, use a draw tool to draw a polygon withing a polygon in your featureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2, save the geometry of the polygon you just drawn to a variable for update later&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3, use featureLayer.selectFeatures() method to select the polygon you want to clip out&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4, update the geometry of the polygon. you can use geometry.addRing() method. (may need to arrange the new ring counter-clockwise in order to create a whole)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5, Now the polygon you want to clip out has a new geometry with a whole in it which is the polygon you drawn, you can just use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureLayer.applyEdits(null, feature, null) to update the clipped out polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;check the API references for the corresponding objects and methods.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advanced-editing/m-p/474752#M44058</guid>
      <dc:creator>ZachLiu1</dc:creator>
      <dc:date>2013-09-25T16:21:29Z</dc:date>
    </item>
  </channel>
</rss>

