Crop Map To Extents

Description

This functor crops an input map, producing as output a crop window defined by the coordinates of two opposite corners (first and second), specified in the map projection.

Inputs

Name Type Description
Map Map Type Input map to be cropped.
First Window Coordinate X Real Value Type X coordinate of the first corner of the cropping window, expressed in the map projection units. It is possible to specify the window by either of the two opposite corners. The value must be within the map extent; otherwise, the operation will fail. The cropping is applied to all layers of the map.
First Window Coordinate Y Real Value Type Y coordinate of the first corner of the cropping window, expressed in the map projection units. It is possible to specify the window by either of the two opposite corners. The value must be within the map extent; otherwise, the operation will fail. The cropping is applied to all layers of the map.
Second Window Coordinate X Real Value Type X coordinate of the second corner of the cropping window, expressed in the map projection units. It is possible to specify the window by either of the two opposite corners. The value must be within the map extent; otherwise, the operation will fail. The cropping is applied to all layers of the map.
Second Window Coordinate Y Real Value Type Y coordinate of the second corner of the cropping window, expressed in the map projection units. It is possible to specify the window by either of the two opposite corners. The value must be within the map extent; otherwise, the operation will fail. The cropping is applied to all layers of the map.

Output

Name Type Description
Output Map Type Resulting map from the cropping operation, corresponding to the defined window.

Group

Notes

The cropping window can be defined by any two opposite corners. The functor will automatically determine the correct bounding box regardless of which corners are specified (e.g., upper-left and lower-right, or upper-right and lower-left).

All four coordinate parameters are required and must specify valid coordinates within the map extent.

The cropping operation is applied to all layers of the map if the input map contains multiple layers.

The spatial cropping of the input map is performed according to the provided coordinates.

Internal Name

CropMapToExtents