Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion notebooks/00-jupyter_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,10 @@
}
],
"metadata": {
"jupytext": {
"cell_metadata_filter": "-run_control,-deletable,-editable,-jupyter,-slideshow",
"notebook_metadata_filter": "-jupytext.cell_metadata_filter,-jupytext.notebook_metadata_filter"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
Expand All @@ -950,7 +954,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.8"
},
"nav_menu": {},
"toc": {
Expand Down
2 changes: 1 addition & 1 deletion notebooks/00-jupyter_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.4
jupytext_version: 1.16.5
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down
6 changes: 4 additions & 2 deletions notebooks/01-introduction-tabular-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5473,7 +5473,9 @@
"metadata": {
"celltoolbar": "Nbtutor - export exercises",
"jupytext": {
"formats": "ipynb,md:myst"
"cell_metadata_filter": "-run_control,-deletable,-editable,-jupyter,-slideshow",
"formats": "ipynb,md:myst",
"notebook_metadata_filter": "-jupytext.cell_metadata_filter,-jupytext.notebook_metadata_filter"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
Expand All @@ -5490,7 +5492,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.8"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
2 changes: 1 addition & 1 deletion notebooks/01-introduction-tabular-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.4
jupytext_version: 1.16.5
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down
12 changes: 7 additions & 5 deletions notebooks/02-introduction-geospatial-data.ipynb

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions notebooks/02-introduction-geospatial-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.4
jupytext_version: 1.16.5
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand All @@ -22,8 +22,6 @@ kernelspec:
---

```{code-cell} ipython3
%matplotlib inline

import pandas as pd
import geopandas
```
Expand All @@ -34,7 +32,7 @@ import geopandas

Geospatial data is often available from specific GIS file formats or data stores, like ESRI shapefiles, GeoJSON files, geopackage files, PostGIS (PostgreSQL) database, ...

We can use the GeoPandas library to read many of those GIS file formats (relying on the `fiona` library under the hood, which is an interface to GDAL/OGR), using the `geopandas.read_file` function.
We can use the GeoPandas library to read many of those GIS file formats (relying on the `pyogrio` library under the hood, which is an interface to GDAL/OGR), using the `geopandas.read_file` function.

For example, let's start by reading a shapefile with all the countries of the world (adapted from http://www.naturalearthdata.com/downloads/110m-cultural-vectors/110m-admin-0-countries/, zip file is available in the `/data` directory), and inspect the data:

Expand Down
8 changes: 5 additions & 3 deletions notebooks/03-coordinate-reference-systems.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"\n",
"import pandas as pd\n",
"import geopandas"
]
Expand Down Expand Up @@ -992,6 +990,10 @@
],
"metadata": {
"celltoolbar": "Nbtutor - export exercises",
"jupytext": {
"cell_metadata_filter": "-run_control,-deletable,-editable,-jupyter,-slideshow",
"notebook_metadata_filter": "-jupytext.cell_metadata_filter,-jupytext.notebook_metadata_filter"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
Expand All @@ -1007,7 +1009,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.8"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
4 changes: 1 addition & 3 deletions notebooks/03-coordinate-reference-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.4
jupytext_version: 1.16.5
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand All @@ -22,8 +22,6 @@ kernelspec:
---

```{code-cell} ipython3
%matplotlib inline

import pandas as pd
import geopandas
```
Expand Down
12 changes: 7 additions & 5 deletions notebooks/04-spatial-relationships-joins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"\n",
"import pandas as pd\n",
"import geopandas"
]
Expand Down Expand Up @@ -107,7 +105,7 @@
"metadata": {},
"outputs": [],
"source": [
"from shapely.geometry import LineString\n",
"from shapely import LineString\n",
"line = LineString([paris, brussels])"
]
},
Expand Down Expand Up @@ -608,7 +606,7 @@
"outputs": [],
"source": [
"# Import the Point geometry\n",
"from shapely.geometry import Point"
"from shapely import Point"
]
},
{
Expand Down Expand Up @@ -2816,6 +2814,10 @@
}
],
"metadata": {
"jupytext": {
"cell_metadata_filter": "-run_control,-deletable,-editable,-jupyter,-slideshow",
"notebook_metadata_filter": "-jupytext.cell_metadata_filter,-jupytext.notebook_metadata_filter"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
Expand All @@ -2831,7 +2833,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.8"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
8 changes: 3 additions & 5 deletions notebooks/04-spatial-relationships-joins.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.4
jupytext_version: 1.16.5
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand All @@ -22,8 +22,6 @@ kernelspec:
---

```{code-cell} ipython3
%matplotlib inline

import pandas as pd
import geopandas
```
Expand Down Expand Up @@ -67,7 +65,7 @@ brussels = cities.loc[cities['name'] == 'Brussels', 'geometry'].item()
And a linestring:

```{code-cell} ipython3
from shapely.geometry import LineString
from shapely import LineString
line = LineString([paris, brussels])
```

Expand Down Expand Up @@ -204,7 +202,7 @@ The location of the Eiffel Tower is: x of 648237.3 and y of 6862271.9

```{code-cell} ipython3
# Import the Point geometry
from shapely.geometry import Point
from shapely import Point
```

```{code-cell} ipython3
Expand Down
8 changes: 6 additions & 2 deletions notebooks/05-spatial-operations-overlays.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"metadata": {},
"outputs": [],
"source": [
"from shapely.geometry import LineString\n",
"from shapely import LineString\n",
"box = LineString([(-10, 0), (50, 0)]).buffer(10, cap_style=3)"
]
},
Expand Down Expand Up @@ -2770,6 +2770,10 @@
],
"metadata": {
"celltoolbar": "Nbtutor - export exercises",
"jupytext": {
"cell_metadata_filter": "-run_control,-deletable,-editable,-jupyter,-slideshow",
"notebook_metadata_filter": "-jupytext.cell_metadata_filter,-jupytext.notebook_metadata_filter"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
Expand All @@ -2785,7 +2789,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.8"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
4 changes: 2 additions & 2 deletions notebooks/05-spatial-operations-overlays.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.4
jupytext_version: 1.16.5
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down Expand Up @@ -107,7 +107,7 @@ africa = countries[countries.continent == 'Africa']
```

```{code-cell} ipython3
from shapely.geometry import LineString
from shapely import LineString
box = LineString([(-10, 0), (50, 0)]).buffer(10, cap_style=3)
```

Expand Down
Loading