-
Notifications
You must be signed in to change notification settings - Fork 222
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
Figure.tilemap: handle longitude given as 0°-360° #2591
Comments
Hmm, a few things:
|
Sounds good. |
contextily/xyzservices assumes that all tiles come in web mercator (EPSG:3857) (source: geopandas/xyzservices#99 (comment)) and web mercator's center location is (0, 0) and has a bound range (-20037508.34, 20037508.34, -20048966.1, 20048966.1) which corresponds to (-180.0, 180.0, -85.06, 85.06) in WGS84 CRS (source: https://epsg.io/3857). So, I think it's unlikely that xyzservices can return cross-dateline tiles.
Yes, we can do it. For example, for a longitude range with west=150, east=200, we can split into two parts,
However, the problem is, currently Since the cross-dateline issue only exists when
|
pygmt.Figure.coast
and the remote datasets (plotted viapygmt.Figure.grdimage
) support that the longitude is given either as -180° to 180° East or as 0° to 360° East. However, it looks like the later longitude range is not supported bypygmt.Figure.tilemap
. When plotting tiles for a region exceeding 180° East, the area after 180° East remains empty.Output figure:
The text was updated successfully, but these errors were encountered: