From 30fd77a5403f28ca7e2dc93d52d7067af9d3e54d Mon Sep 17 00:00:00 2001 From: Jessica Hudiono Date: Sun, 26 Jul 2020 15:41:55 -0700 Subject: [PATCH 1/2] Replace deprecated buildings_from_place() method buildings_from_place() was deprecated and removed from osmnx as of version 0.10 (2019-05-08). See https://github.com/gboeing/osmnx/blob/master/CHANGELOG.md Documentation for footprints_from_place: https://osmnx.readthedocs.io/en/stable/osmnx.html#osmnx.footprints.footprints_from_place --- source/lessons/L3/retrieve-osm-data.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lessons/L3/retrieve-osm-data.rst b/source/lessons/L3/retrieve-osm-data.rst index ea3f317..76bfe68 100644 --- a/source/lessons/L3/retrieve-osm-data.rst +++ b/source/lessons/L3/retrieve-osm-data.rst @@ -70,13 +70,13 @@ Great! Now we can see that our graph contains the nodes (blue circles) and the e It is also possible to retrieve other types of OSM data features with osmnx. -- Let's download the buildings with ``buildings_from_place()`` function and plot them on top of our street network in Kamppi. Let's also plot the Polygon that represents the area of Kamppi, +- Let's download the buildings with ``footprints_from_place()`` function from OSM's `footprints` module and plot them on top of our street network in Kamppi. Let's also plot the Polygon that represents the area of Kamppi, Helsinki that can be retrieved with ``gdf_from_place`` function. .. ipython:: python area = ox.gdf_from_place(place_name) - buildings = ox.buildings_from_place(place_name) + buildings = ox.footprints.footprints_from_place(place_name, footprint_type='building') type(area) type(buildings) From 3e2c72e8b4951658e2105afe8bb24e2f6a5b6932 Mon Sep 17 00:00:00 2001 From: Jessica Hudiono Date: Sun, 26 Jul 2020 15:46:38 -0700 Subject: [PATCH 2/2] Update retrieve-osm-data.rst --- source/lessons/L3/retrieve-osm-data.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lessons/L3/retrieve-osm-data.rst b/source/lessons/L3/retrieve-osm-data.rst index 76bfe68..a423ba1 100644 --- a/source/lessons/L3/retrieve-osm-data.rst +++ b/source/lessons/L3/retrieve-osm-data.rst @@ -70,7 +70,7 @@ Great! Now we can see that our graph contains the nodes (blue circles) and the e It is also possible to retrieve other types of OSM data features with osmnx. -- Let's download the buildings with ``footprints_from_place()`` function from OSM's `footprints` module and plot them on top of our street network in Kamppi. Let's also plot the Polygon that represents the area of Kamppi, +- Let's download the buildings with ``footprints_from_place()`` function from OSM's ``footprints`` module and plot them on top of our street network in Kamppi. Let's also plot the Polygon that represents the area of Kamppi, Helsinki that can be retrieved with ``gdf_from_place`` function. .. ipython:: python