geodata.Mask.crop_layer
=======================

.. py:method:: geodata.Mask.crop_layer(layer_name: str, bounds: tuple[float, float, float, float], lat_lon_bounds: bool = True, dest_layer_name: Optional[str] = None)

   Crop a layer of mask object using `crop_raster` method.

   :param layer_name: The name of the layer to be cropped.
   :type layer_name: str
   :param bounds: The bounds of the cropped layer.
                  The order of the bounds should be (left, right, bottom, top).
   :type bounds: tuple
   :param lat_lon_bounds: Whether the bounds are in latitude/longitude coordinates.
                          By default this is set to True.
   :type lat_lon_bounds: bool
   :param dest_layer_name: The name of the cropped layer.
                           If not specified, the cropped layer will replace the original layer.
   :type dest_layer_name: str

