Skip to content

Commit

Permalink
update notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed May 17, 2024
1 parent f3979e7 commit c8147be
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
12 changes: 6 additions & 6 deletions notebooks/10-building-footprints.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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]"
]
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -276,7 +276,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/11-interactive-web-mapping.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -286,7 +286,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/12-node-elevations-edge-grades.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -358,7 +358,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/13-isolines-isochrones.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -248,7 +248,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/14-osmnx-to-igraph.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -223,7 +223,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/15-advanced-plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -330,7 +330,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/16-download-osm-geospatial-features.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -137,7 +137,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/17-street-network-orientations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -145,7 +145,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit c8147be

Please sign in to comment.