<?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 Suggestions on splitting a polygon into rectangles in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/suggestions-on-splitting-a-polygon-into-rectangles/m-p/636136#M59417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently using turf.js to split a polygon into rectangles of a specified length &amp;amp; width. It's a modification of the squareGrid function:&amp;nbsp;&lt;A href="https://turfjs.org/docs/#squareGrid"&gt;https://turfjs.org/docs/#squareGrid&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping there is a way to achieve this using the ArcGIS JS API. It would avoid some messy converting code to get the polygon into GeoJSON for Turf.js to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions on where to look?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2019 03:05:06 GMT</pubDate>
    <dc:creator>AdamMichaleski</dc:creator>
    <dc:date>2019-06-20T03:05:06Z</dc:date>
    <item>
      <title>Suggestions on splitting a polygon into rectangles</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/suggestions-on-splitting-a-polygon-into-rectangles/m-p/636136#M59417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently using turf.js to split a polygon into rectangles of a specified length &amp;amp; width. It's a modification of the squareGrid function:&amp;nbsp;&lt;A href="https://turfjs.org/docs/#squareGrid"&gt;https://turfjs.org/docs/#squareGrid&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping there is a way to achieve this using the ArcGIS JS API. It would avoid some messy converting code to get the polygon into GeoJSON for Turf.js to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions on where to look?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 03:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/suggestions-on-splitting-a-polygon-into-rectangles/m-p/636136#M59417</guid>
      <dc:creator>AdamMichaleski</dc:creator>
      <dc:date>2019-06-20T03:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on splitting a polygon into rectangles</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/suggestions-on-splitting-a-polygon-into-rectangles/m-p/636137#M59418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the cut property of the GeometryService class of Esri JavaScript API 4.11 (or 3.28, I prefer 4.11) to do this. Here is some documentation for you:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#cut" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#cut"&gt;GeometryService | ArcGIS API for JavaScript 4.11&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html#cut" title="https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html#cut"&gt;GeometryService | API Reference | ArcGIS API for JavaScript 3.28&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/suggestions-on-splitting-a-polygon-into-rectangles/m-p/636137#M59418</guid>
      <dc:creator>DavidWilson3</dc:creator>
      <dc:date>2019-06-20T14:14:56Z</dc:date>
    </item>
  </channel>
</rss>

