RasterLayer.Crop
Contents
[
Hide
]Crop(IGeometry, double[])
Crops the raster layer using a shape form (and band mask).
public RasterLayer Crop(IGeometry geometry, double[] masks = null)
Parameter | Type | Description |
---|---|---|
geometry | IGeometry | Geometry represented the shape form. |
masks | Double[] | Mask for crop layer |
Return Value
The cropped raster layer. If no intersections found returns null
.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Argument cannot be null. Parameter name: geometry. |
NotSupportedException | Argument cannot be different from polygon or surface. Parameter name: geometry. |
InvalidOperationException | Original layer cannot be another CropRasterLayer. |
GisException | Error while cropping the layer. |
See Also
- interface IGeometry
- class RasterLayer
- namespace Aspose.Gis.Raster
- assembly Aspose.GIS
Crop(double[])
Crops the raster layer using a band mask).
public RasterLayer Crop(double[] masks)
Parameter | Type | Description |
---|---|---|
masks | Double[] | Mask for crop layer |
Return Value
The cropped raster layer. If no intersections found returns null
.
Exceptions
exception | condition |
---|---|
InvalidOperationException |
See Also
- class RasterLayer
- namespace Aspose.Gis.Raster
- assembly Aspose.GIS