You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WMS requests over the antimeridian : inconsistent responses, depending on east or west side #7357
I noticed a weird behaviour with a WMS request based on EPSG:4326, when the BBOX exeeds the [-180 ; +180] longitude intervalle.
We bump into this problem when we try to display images over the antimeridian line.
I could observe this problem with the "MapServer Demonstration Server".
Environment
Alma Linux V8.10
Mapserver V8.2.0
Actual behavior
Mapserver response is not consistent whether the BBOX overlaps eastward or westward :
Westward
BBOX=-90,-200,90,100
The image is clipped on both east and west sides, that is in the [-180° ; +100°] longitude intervalle.
On the west side, pixels in the [-200° ; -180°] longitude intervalle are transparent.
Eastward
BBOX=-90,-100,90,200
The image is clipped on the west side, which is OK.
On the east side, pixels in the [+180°; +200°] longitude intervalle are not correct.
For information, this is what the WMS 1.3.0 standard says:
If a request contains a BBOX whose area does not overlap at all with the element in the service
metadata for the requested layer, the server shall return empty content (that is, a blank map or an graphic
element file with no elements) for that map. Any features that are partly or entirely contained in the Bounding Box
shall be returned in the appropriate format.
If the Bounding Box values are not defined for the given CRS (e.g. latitudes greater than 90 degrees in CRS:84),
the server should return empty content for areas outside the valid range of the CRS.
The "repeated world" seems to be against the standard, but maybe it is not so dangerous to break the standard if there is a good reason.
Activity
jratike80 commentedon Oct 6, 2025
For information, this is what the WMS 1.3.0 standard says:
The "repeated world" seems to be against the standard, but maybe it is not so dangerous to break the standard if there is a good reason.