Skip to content

Fix typos #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion contextily/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def _sm2ll(x, y):
def _calculate_zoom(w, s, e, n):
"""Automatically choose a zoom level given a desired number of tiles.

.. note:: all values are interpreted as latitude / longitutde.
.. note:: all values are interpreted as latitude / longitude.

Parameters
----------
Expand Down
6 changes: 3 additions & 3 deletions notebooks/friends_cenpy_osmnx.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions notebooks/warping_guide.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# Warping tiles\n",
"\n",
"Most basemap tiles provided through the web are expressed in the Web Mercator coordinate reference syste (`EPSG:3857`). However, often our data is not expressed in the same CRS. In those cases, we have two options if we want to plot them on top of a basemap: a) reproject our data to Web Mercator, or b) reproject (warp) the tiles to conform with our data. Which one is best depends on many things but mostly on the size of your own data. If you have a large and/or detailed dataset (e.g. high resolution polygons), reprojecting it might be expensive; if you have a small one, it might be the easiest as you can plot on top of the native tile. For the case where you don't want to transform your dataset, an alternative is to change the tiles to its CRS. In raster parlance, this is called \"warping\", and `contextily` can help you do that."
"Most basemap tiles provided through the web are expressed in the Web Mercator coordinate reference system (`EPSG:3857`). However, often our data is not expressed in the same CRS. In those cases, we have two options if we want to plot them on top of a basemap: a) reproject our data to Web Mercator, or b) reproject (warp) the tiles to conform with our data. Which one is best depends on many things but mostly on the size of your own data. If you have a large and/or detailed dataset (e.g. high resolution polygons), reprojecting it might be expensive; if you have a small one, it might be the easiest as you can plot on top of the native tile. For the case where you don't want to transform your dataset, an alternative is to change the tiles to its CRS. In raster parlance, this is called \"warping\", and `contextily` can help you do that."
]
},
{
Expand Down Expand Up @@ -135,7 +135,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The result here is a map expresed in Web Mercator."
"The result here is a map expressed in Web Mercator."
]
},
{
Expand All @@ -144,7 +144,7 @@
"source": [
"## Convert the tiles to your data's CRS\n",
"\n",
"The same journey can be travelled in the oposite direction by leaving your data untouched and warping the tiles coming from the web. To do this in `add_basemap`, all you have to do is express the CRS your data are in:"
"The same journey can be travelled in the opposite direction by leaving your data untouched and warping the tiles coming from the web. To do this in `add_basemap`, all you have to do is express the CRS your data are in:"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/working_with_local_files.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# Working with local files\n",
"\n",
"At heart, `contextily` is a package to work with data from the web. Its main functionality allows you to access tilesets exposed through the popular XYZ format and include them in your workflow through `matplotlib`. However, a little hidden gem in the pacakge is also how it is useful to work with local files. For all this functionality, `contextily` relies on `rasterio` so, in the name of showing how a streamlined workflow could look like, we will switch back and forth between the two in this notebook. For good measure, we will also use `geopandas` as it'll show how they are all a family that works great together!"
"At heart, `contextily` is a package to work with data from the web. Its main functionality allows you to access tilesets exposed through the popular XYZ format and include them in your workflow through `matplotlib`. However, a little hidden gem in the package is also how it is useful to work with local files. For all this functionality, `contextily` relies on `rasterio` so, in the name of showing how a streamlined workflow could look like, we will switch back and forth between the two in this notebook. For good measure, we will also use `geopandas` as it'll show how they are all a family that works great together!"
]
},
{
Expand Down
Loading