<?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 How to explode multipart polygon but retain donut shapes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-explode-multipart-polygon-but-retain-donut/m-p/762394#M70634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcGIS JavaScript 3.2x API, what would be the most efficient way to explode/break apart a multi-part polygon, yet retain those shapes that have holes in them as a single polygon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously we could extract all the rings into individual polygons, but then the 'holes' become polygons, and the original 'donut' looses it's hole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could step through every ring, check it's direction and test whether it's inside/outside of every other ring, but that seems over the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on the most efficient way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2018 02:29:43 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-08-14T02:29:43Z</dc:date>
    <item>
      <title>How to explode multipart polygon but retain donut shapes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-explode-multipart-polygon-but-retain-donut/m-p/762394#M70634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcGIS JavaScript 3.2x API, what would be the most efficient way to explode/break apart a multi-part polygon, yet retain those shapes that have holes in them as a single polygon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously we could extract all the rings into individual polygons, but then the 'holes' become polygons, and the original 'donut' looses it's hole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could step through every ring, check it's direction and test whether it's inside/outside of every other ring, but that seems over the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on the most efficient way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 02:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-explode-multipart-polygon-but-retain-donut/m-p/762394#M70634</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-08-14T02:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to explode multipart polygon but retain donut shapes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-explode-multipart-polygon-but-retain-donut/m-p/762395#M70635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;We could step through every ring, check it's direction and test whether it's inside/outside of every other ring, but that seems over the top.&lt;/BLOCKQUOTE&gt;&lt;P&gt;There is no other way that I am aware of. Explode is something that is a Desktop operation that ArcObjects can handle easily but the JS API will be pretty slow at an operation like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 13:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-explode-multipart-polygon-but-retain-donut/m-p/762395#M70635</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-14T13:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to explode multipart polygon but retain donut shapes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-explode-multipart-polygon-but-retain-donut/m-p/762396#M70636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like a classic example of where there should be built-in methods. Maybe something for the future of the 4.x API!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-explode-multipart-polygon-but-retain-donut/m-p/762396#M70636</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-08-14T20:54:46Z</dc:date>
    </item>
  </channel>
</rss>

