Clip a geometry with another geometry.
Create a new set of geometries for analysis (e.g. displaying buffer zones around abandoned coal mine shafts in an area of planned urban development) by clipping intersecting geometries.
Tap the "Clip" button to clip the blue graphic with the red dashed envelopes.
- Use the static method
GeometryEngine.Clip()
to generate a clippedGeometry
, passing in an existingGeometry
and anEnvelope
as parameters. The existing geometry will be clipped where it intersects an envelope. - Create a new
Graphic
from the clipped geometry and add it to aGraphicsOverlay
on theMapView
.
- Envelope
- Geometry
- GeometryEngine.Clip
- Graphic
- GraphicsOverlay
Note: the resulting geometry may be null if the envelope does not intersect the geometry being clipped.
analysis, clip, geometry