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

Extent of a basemap varies once it's been saved to disk #33

Closed
darribas opened this issue Jul 16, 2018 · 0 comments
Closed

Extent of a basemap varies once it's been saved to disk #33

darribas opened this issue Jul 16, 2018 · 0 comments
Labels

Comments

@darribas
Copy link
Collaborator

The extent of a basemap is changed

In [80]: pl = ctx.Place('boulder', zoom_adjust=-3, path='temp.tiff')

In [81]: pl.bbox_map
Out[81]: 
(-11740727.544603072,
 -11701591.786121061,
 4852834.0517692715,
 4891969.810251278)

In [82]: rio.open('temp.tiff').bounds
Out[82]: BoundingBox(left=-11740803.981631357, bottom=4852910.488797557, right=-11701668.223149346, top=4892046.247279563)

In [83]: rio.open('temp.tiff').bounds[0] == pl.bbox_map[0]
Out[83]: False

I'm not sure why this is happening but would be nice to at least know why. In principle, I'd expect both basemaps to have the same extent.

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

No branches or pull requests

1 participant