Select to view content in your preferred language

geometryEngine.union creates slivers

547
1
Jump to solution
04-05-2019 12:41 PM
JamesCrandall
MVP Frequent Contributor

Any obvious reason why a dissolve of selected polygons (by way of geometryEngine.union()) is creating slivers in between the coincident input polygons?

dissolveSelectedPolygons: function () {
     var graphicsToDissolve = this.parcelLayer.getSelectedFeatures(), geometriesToDissolve = [];

geometriesToDissolve.push(this.clientSideScratchLayer.graphics[0].geometry);

var newGeometry = geometryEngine.union(geometriesToDissolve);

this.clientSideScratchLayer.clear();
this.clientSideScratchLayer.add(this.createGraphicFromGeometry(newGeometry));
}

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos
1 Solution

Accepted Solutions
JamesCrandall
MVP Frequent Contributor

Robert has answered this in another post HERE.

yourFeatureLayer.setMaxAllowableOffset(0);
yourFeatureLayer.setAutoGeneralize(false);

View solution in original post

0 Kudos
1 Reply
JamesCrandall
MVP Frequent Contributor

Robert has answered this in another post HERE.

yourFeatureLayer.setMaxAllowableOffset(0);
yourFeatureLayer.setAutoGeneralize(false);
0 Kudos