[Geoserver-devel] [JIRA] (GEOS-7188) Layer Group reprojections can exceed CRS bounds

Torben Barsballe created an issue

GeoServer / BugGEOS-7188

Layer Group reprojections can exceed CRS bounds

Issue Type:

BugBug

Assignee:

Unassigned

Created:

04/Sep/15 12:50 AM

Priority:

MediumMedium

Reporter:

Torben Barsballe

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:

Min X
-6,839,459,022,903.579
Min Y
-6,839,459,022,903.579
Max X
586,993,683,640,423.2
Max Y
200,624,317,588,181,840,000,000

Compare this to the bounds for a layer group containing a selection of other layers from the ne_10m_cultural dataset:

Min X
-220,916,548.9963218
Min Y
-220,916,548.9963218
Max X
220,916,548.9963218
Max Y
220,916,548.9963218

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.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-02-259#70102-sha1:6147844)

Atlassian logo