onstove.OnStove.population_to_dataframe#

OnStove.population_to_dataframe(layer: RasterLayer | None = None)[source]#

Takes a population RasterLayer as input and extracts the populated points to the main GeoDataFrame saved in the gdf attribute.

Parameters:
layer: RasterLayer

The raster layer containing the population count data. If not defined, then the base_layer dataset will be used. If layer is not provided and base_layer is None, then an error will be raised.