-
Notifications
You must be signed in to change notification settings - Fork 365
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
No warning if extents past limits are clipped #1730
Comments
The Lines 848 to 854 in 7c75f5a
I think you have to change the value hard-coded in the x_limits and y_limits if you want to go beyond the limits. The largest I can go is x_limits to (-1.671e7, 1.671e7) and y_limits to (-2e7, 2e7) . Beyond that, the map is blank. It gives you something similar to https://en.wikipedia.org/wiki/File:MercTranSph.png |
There's definitely a sensible max for these coords, based on the PROJ docs. We could probably do better and make them something like |
The defined area from the docs is Global, with full accuracy within 3900 km of the central meridian, though it's only 0.1mm at 7000km. In fact, before Transverse Mercator was replaced with etmerc (or, Vertically, Mercator extends to infinity at the pole, but Transverse Mercator is the opposite, and we need to pick a cut off point for x. |
I changed the title of the PR to better reflect the issue. I expected to see the extent I passed or a warning, not a silent clip to the hard coded limits. In part because I didn't know they existed. @dopplershift I changed the limits as part of #1739 @QuLogic where do the docs mention the chosen area? the x and y limits as they are now---x = |
Instead of setting a cut off for x and y, maybe it is better to set the cut off for longitude and latitude. The reason I proposed that is because some projections, e.g. Transverse Mercator, do not work properly beyond certain limits. They may project some points that should be outside the x, y limits inside. Hence, those points cannot be cut off properly. They are projected incorrectly because you transform those projected points back, the resulting longitude and latitude are not the same as the original ones. I saw there are some latitude limits set for You may see an example when plotting coastlines with If I understand it correctly, Lines 539 to 544 in 7c75f5a
|
@blazing216 Transverse Mercator has holes which are centered on the equator and |
Description
TransverseMercator
has two properties bounding map units:cartopy/lib/cartopy/crs.py
Lines 856 to 862 in 2148e13
I'd like to see past these boundaries, but
set_xlim
andset_ylim
don't work as expected.On the left, the top is clipped to
1e7
without warning. On the right, setting2e7
creates whitespace instead of moving the spine and plotting the additional data.It seems like these properties are used all over---what are the consequences of changing them?
The text was updated successfully, but these errors were encountered: