hydromt_fiat.drivers.OSMDriver.get_osm_data#

static OSMDriver.get_osm_data(polygon: MultiPolygon | Polygon, tag: dict[str, Any], geom_type: list[str] | None) GeoDataFrame[source]#

Retrieve OSM data with the OSMnx api.

Parameters:
  • polygon (MultiPolygon | Polygon) – Area of interest.

  • tag (dict) – OSM tag to filter data with, i.e. {‘building’: True}.

  • geom_type (list[str] | None) – List of geometry types to filter data with, i.e. [‘MultiPolygon’, ‘Polygon’].

Returns:

GeoDataFrame with OSM data.

Return type:

gpd.GeoDataFrame