Repository navigation
MS RFC 141: Add MS_ONLINERESOURCE to CONFIG file - #7434
Merged
Merged
Conversation
This was referenced Feb 13, 2026
rouault
approved these changes
Feb 17, 2026
Contributor
|
to be rebased on top of latest main to fix conflicts |
geographika
force-pushed
the
config-onlineresource
branch
from
February 17, 2026 21:13
2b6f4fa to
e376fcd
Compare
This was referenced Nov 19, 2026
Map parameter is truncated in GetCapabilties responses if no onlineresource or TEMPLATE is set
#7700
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation of RFC 141.
Adds a new
MS_ONLINERESOURCEto the MapServer CONFIG file.When accessing the Mapfile using its key (
EXAMPLEin the above example), a request such as https://maps.example.com/example/?service=wms&version=1.3.0&request=GetCapabilities will return a GetCapabilities response with the base URL set tohttps://maps.example.com/.When accessing a Mapfile using the
&map=parameter, this will be appended to theMS_ONLINERESOURCEURL. For example, a request to https://maps.example.com/?map=/data/mapfiles/example.map&service=wms&version=1.3.0&request=GetCapabilities will return a GetCapabilities response including the following:For OGC API URLs requests such as https://maps.example.com/example/ogcapi/?f=json will return URLs in the format https://maps.example.com/example/ogcapi/collections?f=html.