Skip to content

Fixed WMS response if remote layer cannot be retrieved#1931

Merged
copierrj merged 3 commits intodeegree:mainfrom
lat-lon:fix/exceptionHandlingRemotWms-1926
Jan 28, 2026
Merged

Fixed WMS response if remote layer cannot be retrieved#1931
copierrj merged 3 commits intodeegree:mainfrom
lat-lon:fix/exceptionHandlingRemotWms-1926

Conversation

@dstenger
Copy link
Copy Markdown
Contributor

Fixes #1926

Currently, when a remote layer is requested and this layer does not respond with an image (e.g. exception, timeout), the WMS response of deegree is an empty image. Thus, the user does not know if the layer does not work or if there is no data in the requested BBOX.

This PR fixes the behavior by recognizing the erroneous response of the remote layer and passing an error message to the user of the deegree WMS.

Examples for new behavior:

  • WMS response if remote layer cannot be requested:
<?xml version='1.0' encoding='UTF-8'?>
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc">
  <ServiceException code="NoApplicableCode">Error retrieving remote map.</ServiceException>
</ServiceExceptionReport>
  • Further details can be found in the logging of deegree.
  • WMS response if remote layer cannot be requested and EXCEPTIONS=XML is passed: Same behavior as before.
  • WMS response if remote layer cannot be requested and EXCEPTIONS=INIMAGE is passed: Image is returned with this text in upper left corner: Error: Error retrieving remote map.
  • If the layer is a sub layer and the group layer is requested: The behavior is exactly the same as when requesting the sub layer directly (exceptions are returned).

@dstenger dstenger added bug error issue and bug (fix) WMS deegree Web Map Service labels Jan 27, 2026
@tfr42 tfr42 changed the title Fix WMS response if remote layer cannot be retrieved Fixed WMS response if remote layer cannot be retrieved Jan 28, 2026
@tfr42 tfr42 added this to the 3.6.6 milestone Jan 28, 2026
@copierrj copierrj merged commit f7c5f2e into deegree:main Jan 28, 2026
1 check passed
@lgoltz lgoltz deleted the fix/exceptionHandlingRemotWms-1926 branch February 18, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug error issue and bug (fix) WMS deegree Web Map Service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception handling if remote WMS is not available

5 participants