geodata.mask.Mask.add_layer
===========================

.. py:method:: geodata.mask.Mask.add_layer(layer_path: str | list | dict[str, str], layer_name: str | list | None = None, replace: bool = True, trim: bool = True, src_crs: Optional[str] = None, dest_crs: str = 'EPSG:4326')

   Add a layer to the mask from given path(s) by calling the _add_layer() method.

   :param layer_path: The path(s) to the layer file(s)
   :type layer_path: str or list or dict
   :param layer_name: The layer name(s), if names weren't specificd in
                      `layer_path`.
   :type layer_name: str or list
   :param replace: Whether the layer input with same name will replace the old one
                   By default True.
   :type replace: bool
   :param trim: Whether the method will trim the all-empty row/column border
                of the raster. By default, this is true.
   :type trim: bool
   :param src_crs: The source file CRS
   :type src_crs: str
   :param dest_crs: The destination CRS.
                    By default it is 'EPSG:4326' lat lon coordinate system.
   :type dest_crs: str

