cityImage.park_barriers#
- cityImage.park_barriers(place, download_method, distance=500.0, epsg=None, min_area=100000)[source]#
The function downloads parks areas with a certain extent and converts them to LineString features. Parks may break continuity in the urban structure, besides being attractive areas for pedestrians.
- Parameters:
place (str, tuple, Shapely Polygon) – Name of cities or areas in OSM: - when using “distance_from_point” please provide a (lat, lon) tuple to create the bounding box around it; - when using “distance_from_address” provide an existing OSM address; - when using “OSMplace” provide an OSM place name. The query must be geocodable and OSM must have polygon boundaries for the geocode result. - when using “polygon” please provide a Shapely Polygon in unprojected latitude-longitude degrees (EPSG:4326) CRS;
download_method (str, {"distance_from_address", "distance_from_point", "OSMplace", "polygon"}) – It indicates the method that should be used for downloading the data.
distance (float) – Used when download_method == “distance from address” or == “distance from point”.
epsg (int) – Epsg of the area considered; if None OSMNx is used for the projection.
min_area (double) – Parks with an extension smaller that this parameter are disregarded.
- Returns:
park_barriers – The park barriers GeoDataFrame.
- Return type:
LineString GeoDataFrame