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

support for high-dpi WebMap services #140

Open
raphaelquast opened this issue Feb 5, 2023 · 0 comments
Open

support for high-dpi WebMap services #140

raphaelquast opened this issue Feb 5, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@raphaelquast
Copy link
Owner

At the moment WebMap services that provide tiles at non-standard dpi are not fetched correctly...

The issue originates most probably from somewhere in here (maybe some kind of a tilePixelRatio needs to be implemented
to take care of the different tile-sizes?)

EOmaps/eomaps/_webmap.py

Lines 1193 to 1197 in 76a1ef0

located_images = self.raster_source.fetch_raster(
ax.projection,
extent=[x1, x2, y1, y2],
target_resolution=(window_extent.width, window_extent.height),
)

Here's an example for a high-dpi (512 instead of 96) wms service that does not work as expected...

from eomaps import Maps
m = Maps(Maps.CRS.GOOGLE_MERCATOR)
m.set_extent_to_location("wien")
m.add_wms.Austria.AT_basemap.add_layer.bmaphidpi()

# the corresponding normal dpi services works just fine
# m.add_wms.Austria.AT_basemap.add_layer.geolandbasemap()

Any help with this is highly appreciated!

@raphaelquast raphaelquast added bug Something isn't working help wanted Extra attention is needed labels Feb 5, 2023
@raphaelquast raphaelquast added the enhancement New feature or request label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant