-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Output plots using downloaded raster from bounds2raster doesn't plot correctly #155
Comments
Thanks very much for the report! Mmm... It's a strange one. I've played a bit and , if you set Will investigate! |
OK I've done some exploration and I think I've narrowed it to this point: https://github.com/geopandas/contextily/blob/master/contextily/plotting.py#L191 We set the |
OK, I've issued a PR to fix it over at #156 |
That was so fast! Thank you so much. After running into this problem for a day or so, I finally realized that contextily caches the data anyway which is what I was trying to do by storing the local file! https://contextily.readthedocs.io/en/latest/intro_guide.html#Store-basemaps-locally
This package is awesome, thank you so much for your work! 👍 |
…iles * commit '3c26d5a16a094e8d5ae05f8e5a41f05278816daf': DOC: update for latest pydata-sphinx-theme (fix sidebar + use CSS variables) (geopandas#168) RLS: v1.0.1 Fix resetting of extent with local files (geopandas#155) (geopandas#156) Add random user ID for Nominatim and allow arbitrary geocoder (geopandas#164) Close and reopen memfile dataset before WarpedVRT (geopandas#165) Fix use of rasterio MemoryFile (geopandas#163) DOC: Use Cape Town consistently in description and variable names (geopandas#154) Add matplotlib Framework classifier (geopandas#152) Require Python 3.6 as minimum version (geopandas#150) Add earthengine to docker for binder Example interfacing GEE with contextily (geopandas#147) DOC: add notebook about working with local files (geopandas#139) # Conflicts: # tests/test_ctx.py
I was recently trying to use a downloaded raster as the background map for some plots with geopandas. However noticed that some of the plots were just offset from the actual location. This problem only seems to occur when using downloaded rasters.
I initially thought this might be an extents problem, however both plots are showing the exact same extents.
I've included a reproducible example straight from the geopandas docs: https://geopandas.readthedocs.io/en/latest/gallery/plotting_basemap_background.html?highlight=basemap
The text was updated successfully, but these errors were encountered: