Select to view content in your preferred language

Geometry Engine cut cutting into multiple wrong fragments

350
1
11-22-2023 01:20 AM
HaseebAnwar
Emerging Contributor

I am trying to cut a Polyline feature/graphic with a Polyline geometry using the geometryEngine.cut method of the ArcGIS Maps SDK for JavaScript. The problem is that the cut method splits the segments into multiple wrong fragments.

This is how the feature looks before splitting. The orange polyline is the cutter.

1.png

The cut returns three fragments

1

2.png

2

3.png

3

4.png

See that the last fragment is on both sides of the cutting polyline, which is wrong.

I am using v4.28 of JS SDK.

A reproducible Code Pen for the above is at

https://codepen.io/haseebanwar/pen/dyaebrj

In Code Pen, use the line tool (on top-left) and then draw a line on the segment to split. The split segments are logged in the console.

0 Kudos
1 Reply
KristianEkenes
Esri Regular Contributor

I suggest reaching out to Esri support if you suspect this is a bug. They will attempt to reproduce the issue independently then log a bug so the dev team can take a look at it.

0 Kudos