geodata.Mask.add_layer

geodata.Mask.add_layer#

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

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

Parameters:
  • layer_path (str or list or dict) – The path(s) to the layer file(s)

  • layer_name (str or list) – The layer name(s), if names weren’t specificd in layer_path.

  • replace (bool) – Whether the layer input with same name will replace the old one By default True.

  • trim (bool) – Whether the method will trim the all-empty row/column border of the raster. By default, this is true.

  • src_crs (str) – The source file CRS

  • dest_crs (str) – The destination CRS. By default it is ‘EPSG:4326’ lat lon coordinate system.