driptorch.BurnUnit.from_json#
- classmethod BurnUnit.from_json(geojson: dict, firing_direction: float, **kwargs) driptorch.unit.BurnUnit #
Alternative constructor used to create a BurnUnit object from a GeoJSON dictionary.
- Parameters
- geojsondict
GeoJSON dictionary
- firing_directionfloat
firing direction (degrees)
- epsgint
EPSG code of the input GeoJSON. Defaults to 4326.
- Returns
- BurnUnit
New instance of a BurnUnit