Skip to content
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

Handling cartopy projections with Geopandas #53

Open
Beauprel opened this issue Mar 30, 2023 · 0 comments
Open

Handling cartopy projections with Geopandas #53

Beauprel opened this issue Mar 30, 2023 · 0 comments

Comments

@Beauprel
Copy link
Contributor

Geopandas and Cartopy don't mix particularly well: when plotting a GeoDataFrame with df.plot(), which allows to automatically plot a column using a colormap, some cartopy projections are not displayed correctly on a matplotlib.ax.axes instance with a cartopy projection.

For our current applications, most projections we use are okay, especially when the extents are narrow (i.e. not the whole globe). Nonetheless, if this becomes a problem, we have the option of using ax.add_geometries() to plot the shapefile with colors using a method like in https://ipython-books.github.io/146-manipulating-geospatial-data-with-cartopy/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant