clipOrNull

fun clipOrNull(geometry: Geometry, envelope: Envelope): Geometry?

Constructs the portion of a geometry that intersects an envelope. If the Geometry intersects the Envelope, the portion of the Geometry contained within the Envelope is returned. If no part of the Geometry lies within the Envelope, an empty Geometry is returned. If the Geometry lies completely within the Envelope, the entire Geometry is returned.

Supports true curves.

Return

A geometry object that represents the portion of the geometry that intersects the envelope, or null if geometry and envelope do not have equivalent spatial references.

Since

200.1.0

Parameters

geometry

The geometry to be clipped by the given envelope.

envelope

The envelope that clips the given geometry.