RasterLayer.Crop

Crop(IGeometry, double[])

Crops the raster layer using a shape form (and band mask).

public RasterLayer Crop(IGeometry geometry, double[] masks = null)
ParameterTypeDescription
geometryIGeometryGeometry represented the shape form.
masksDouble[]Mask for crop layer

Return Value

The cropped raster layer. If no intersections found returns null.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument cannot be null. Parameter name: geometry.
NotSupportedExceptionArgument cannot be different from polygon or surface. Parameter name: geometry.
InvalidOperationExceptionOriginal layer cannot be another CropRasterLayer.
GisExceptionError while cropping the layer.

See Also


Crop(double[])

Crops the raster layer using a band mask).

public RasterLayer Crop(double[] masks)
ParameterTypeDescription
masksDouble[]Mask for crop layer

Return Value

The cropped raster layer. If no intersections found returns null.

Exceptions

exceptioncondition
InvalidOperationException

See Also