deafrica_tools.load_africapolis#
Loading OECD SWAC Africapolis data. Last modified: December 2024
Functions
|
Retrieve Africapolis data from a GeoServer WFS for a given bounding box. :param bbox: Bounding box as (xmin, ymin, xmax, ymax) in the specified CRS, or a GeoPandas object to extract bounds from. :type bbox: tuple or GeoDataFrame :param crs: Coordinate Reference System for the bounding box. Defaults to EPSG:4326. :type crs: str :param layer: Africapolis layer to load ('africapolis_2015' or 'africapolis_2020'). :type layer: str :param drop_wms: Drop visualization-specific columns. Defaults to True. :type drop_wms: bool. |
- deafrica_tools.load_africapolis.get_africapolis(bbox, crs='EPSG:4326', layer=None) geopandas.GeoDataFrame#
Retrieve Africapolis data from a GeoServer WFS for a given bounding box. :param bbox: Bounding box as (xmin, ymin, xmax, ymax) in the specified CRS,
or a GeoPandas object to extract bounds from.
- Parameters:
crs (str) – Coordinate Reference System for the bounding box. Defaults to EPSG:4326.
layer (str) – Africapolis layer to load (‘africapolis_2015’ or ‘africapolis_2020’).
drop_wms (bool) – Drop visualization-specific columns. Defaults to True.
- Returns:
A GeoDataFrame containing Africapolis data.
- Return type:
gpd.GeoDataFrame