[mapserver-dev] FIX: default values for variable substitution in WEB section

Martin Icking martin.icking at bentley.com
Fri Nov 10 06:26:53 PST 2017


Currently a default value for substitution variables in the map's WEB section
is ignored. I've created a fix to this, pls see this pull request:
https://github.com/mapserver/mapserver/pull/5516
This enables you now to set a default value for e.g. the ows_onlineresource
setting as illustrated below. 
Use case: have a correct capabilities reply behind a proxy software (with
dynamic URI's)

  WEB
	VALIDATION
		'default_ows_onlineresource' 'https://defaultserver/defaultpath'
		'ows_onlineresource' '^https://[a-z0-9/:.?&=]+$'
	END
    METADATA
      'ows_onlineresource'	'%ows_onlineresource%'
    END # METADATA
  END # WEB




--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-Dev-f4252683.html


More information about the mapserver-dev mailing list