ArcGIS Runtime SDK for iOS

Cut geometry

Description

This sample demonstrates how to cut a geometry with a polyline using the AGSGeometryEngine. For example, you may want to subdivide a large parcel polygon into several smaller parcels.

How it works

The AGSGeometryEngine.cut(_:withCutter:) method is executed with the polygon as the first parameter and the cutting line as the second parameter. This returns a list of geometries. Each geometry is added as a new AGSGraphic with differing fill symbols to visualize the results.


In this topic
  1. Description