|
When creating a Layer Group with a reprojected CRS (eg. EPSG:3031 Antarctic Polar Stereographic) and clicking "Calculate Bounds", it is possible to get bounds well outside the actual bounds of the projection.
Example: Create a layer group containing ne_10m_time_zones , projected to EPSG:3031.
Calculate the bounds for that group/srs. You will get:
Compare this to the bounds for a layer group containing a selection of other layers from the ne_10m_cultural dataset:
These are clearly vastly different.
Looking at the ne_10m_time_zones layer in GeoServer, it appears that this is because the bounds of the layer slightly exceed -180 -90 180 90, leading to math problems in the projection.
A solution that would remedy this issue is: 1. Provide a warning when the generated bounds exceed the defined bounds of the CRS 2. Add a button "Use CRS bounds" that sets the bounds to the max CRS bounds
For consistency, a similar warning and button should be added to the layer page, when generating native/declared bounds.
|