From c8147be2dec2cecf38522ac33c24aebfbf432a51 Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Fri, 17 May 2024 16:10:22 -0700 Subject: [PATCH] update notebooks --- notebooks/10-building-footprints.ipynb | 12 ++++++------ notebooks/11-interactive-web-mapping.ipynb | 6 +++--- notebooks/12-node-elevations-edge-grades.ipynb | 6 +++--- notebooks/13-isolines-isochrones.ipynb | 6 +++--- notebooks/14-osmnx-to-igraph.ipynb | 6 +++--- notebooks/15-advanced-plotting.ipynb | 6 +++--- notebooks/16-download-osm-geospatial-features.ipynb | 6 +++--- notebooks/17-street-network-orientations.ipynb | 6 +++--- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/notebooks/10-building-footprints.ipynb b/notebooks/10-building-footprints.ipynb index e573d7d..1a16032 100644 --- a/notebooks/10-building-footprints.ipynb +++ b/notebooks/10-building-footprints.ipynb @@ -71,7 +71,7 @@ "source": [ "# save as a GeoPackage\n", "gdf_save = gdf.map(lambda x: str(x) if isinstance(x, list) else x)\n", - "gdf_save.drop(labels=\"nodes\", axis=1).to_file(\"./data/piedmont_bldgs.gpkg\", driver=\"GPKG\")" + "gdf_save.to_file(\"./data/piedmont_bldgs.gpkg\", driver=\"GPKG\")" ] }, { @@ -110,7 +110,7 @@ "source": [ "# get the total area within Piedmont's admin boundary in sq meters\n", "place = ox.geocode_to_gdf(\"Piedmont, California, USA\")\n", - "place_proj = ox.project_gdf(place)\n", + "place_proj = ox.projection.project_gdf(place)\n", "place_proj.area.iloc[0]" ] }, @@ -140,7 +140,7 @@ "point = (48.873446, 2.294255)\n", "dist = 612\n", "gdf = ox.features_from_point(point, tags, dist=dist)\n", - "gdf_proj = ox.project_gdf(gdf)\n", + "gdf_proj = ox.projection.project_gdf(gdf)\n", "bbox = ox.utils_geo.bbox_from_point(point=point, dist=dist, project_utm=True)\n", "fp = f\"./{img_folder}/paris_bldgs.{extension}\"\n", "fig, ax = ox.plot_footprints(\n", @@ -262,9 +262,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -276,7 +276,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/notebooks/11-interactive-web-mapping.ipynb b/notebooks/11-interactive-web-mapping.ipynb index abcb80c..a88df0e 100644 --- a/notebooks/11-interactive-web-mapping.ipynb +++ b/notebooks/11-interactive-web-mapping.ipynb @@ -272,9 +272,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -286,7 +286,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/notebooks/12-node-elevations-edge-grades.ipynb b/notebooks/12-node-elevations-edge-grades.ipynb index 2455675..3671b49 100644 --- a/notebooks/12-node-elevations-edge-grades.ipynb +++ b/notebooks/12-node-elevations-edge-grades.ipynb @@ -344,9 +344,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -358,7 +358,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/notebooks/13-isolines-isochrones.ipynb b/notebooks/13-isolines-isochrones.ipynb index 4fbb305..87d0a00 100644 --- a/notebooks/13-isolines-isochrones.ipynb +++ b/notebooks/13-isolines-isochrones.ipynb @@ -234,9 +234,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -248,7 +248,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/notebooks/14-osmnx-to-igraph.ipynb b/notebooks/14-osmnx-to-igraph.ipynb index 3ab739b..27a483d 100644 --- a/notebooks/14-osmnx-to-igraph.ipynb +++ b/notebooks/14-osmnx-to-igraph.ipynb @@ -209,9 +209,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -223,7 +223,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/notebooks/15-advanced-plotting.ipynb b/notebooks/15-advanced-plotting.ipynb index 5262d37..d1fb7cb 100644 --- a/notebooks/15-advanced-plotting.ipynb +++ b/notebooks/15-advanced-plotting.ipynb @@ -316,9 +316,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -330,7 +330,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/notebooks/16-download-osm-geospatial-features.ipynb b/notebooks/16-download-osm-geospatial-features.ipynb index 5c572de..cbae85b 100644 --- a/notebooks/16-download-osm-geospatial-features.ipynb +++ b/notebooks/16-download-osm-geospatial-features.ipynb @@ -123,9 +123,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -137,7 +137,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/notebooks/17-street-network-orientations.ipynb b/notebooks/17-street-network-orientations.ipynb index e55bb83..318f315 100644 --- a/notebooks/17-street-network-orientations.ipynb +++ b/notebooks/17-street-network-orientations.ipynb @@ -131,9 +131,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python (ox)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "ox" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -145,7 +145,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.12.3" } }, "nbformat": 4,