<?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: boundaryOperator not completing the Polygon Boundary in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/boundaryoperator-not-completing-the-polygon/m-p/1576476#M86392</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425634"&gt;@rhughes522&lt;/a&gt;&amp;nbsp; please provide a minimal reproducible application. You can capture the feature record's geometry and manually create a polygon from it in the repro app. Here are some guidelines: &lt;A href="https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 16:44:38 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2025-01-16T16:44:38Z</dc:date>
    <item>
      <title>boundaryOperator not completing the Polygon Boundary</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/boundaryoperator-not-completing-the-polygon/m-p/1576061#M86388</link>
      <description>&lt;P&gt;Using the JS Maps SDK 4.31 with the boundaryOperator Geometry Operator within an Experience Builder custom widget.&amp;nbsp; When I pass in a polygon geometry the paths on the output Polyline don't close.&amp;nbsp; The last point in the path isn't the same as the first point like the rings in the Polygon.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rhughes522_0-1736983804475.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123429iFB9A8D8A2886EDAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhughes522_0-1736983804475.png" alt="rhughes522_0-1736983804475.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;These are the rings in the polygon were the first vertex is identical to the last vertex.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rhughes522_2-1736984015619.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123431i55F96A1EDC0061E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhughes522_2-1736984015619.png" alt="rhughes522_2-1736984015619.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;These are the paths on the boundaryOperator output Polyline were the lastPoint is not identical to the first Point.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rhughes522_1-1736983954982.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123430i939140C79A082CF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhughes522_1-1736983954982.png" alt="rhughes522_1-1736983954982.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My two workarounds are to either A) generate a Polyline with paths from the Polygon rings, or B) Push the firstPoint from the Polyline paths onto the end of the Polyline paths array.&amp;nbsp; The boundaryOperator seems to be behaving like this every time regardless of the zoom level or shape of the polygon.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const feat_record: FeatureDataRecord = record as FeatureDataRecord;
const geo = feat_record.feature.geometry as Polygon;
let boundary_line = boundaryOperator.execute(geo) as Polyline;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 23:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/boundaryoperator-not-completing-the-polygon/m-p/1576061#M86388</guid>
      <dc:creator>rhughes522</dc:creator>
      <dc:date>2025-01-15T23:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: boundaryOperator not completing the Polygon Boundary</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/boundaryoperator-not-completing-the-polygon/m-p/1576476#M86392</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425634"&gt;@rhughes522&lt;/a&gt;&amp;nbsp; please provide a minimal reproducible application. You can capture the feature record's geometry and manually create a polygon from it in the repro app. Here are some guidelines: &lt;A href="https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 16:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/boundaryoperator-not-completing-the-polygon/m-p/1576476#M86392</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2025-01-16T16:44:38Z</dc:date>
    </item>
  </channel>
</rss>

