[mapserver-users] GRABBING some default CGI parameters in MapFile.
Lime, Steve D (MNIT)
steve.lime at state.mn.us
Thu Sep 7 09:28:28 PDT 2017
Width in what context? How are you trying use that value?
________________________________
From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Basques, Bob (CI-StPaul) <bob.basques at ci.stpaul.mn.us>
Sent: Thursday, September 7, 2017 11:18:04 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] GRABBING some default CGI parameters in MapFile.
All,
Isn’t there some way to grab the width/height parameter values (%width%) from within the Mapfile.
I tried for width by adding in a validation line:
VALIDATION
'pin' '^[0-9]{12}$'
'qstring' '^[0-9]{12}$'
'width' '^[0-9]{5}$'
END
but I get an error:
[Thu Sep 7 11:05:31 2017].805273 msApplySubstitutions(): Regular expression error. Parameter pattern validation failed.
[Thu Sep 7 11:05:31 2017].805313 layer (Parcels-Query-Edges-Tabulation): failed to validate (width=1389) for regex (^[0-9]{12}$)
. . . .
Thanks
bobb
"This telephone has too many shortcomings to be seriously considered as a means of communication. The device is inherently of no value to us." -- An internal Western Union memo, 1876
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170907/28f0c027/attachment.htm>
More information about the MapServer-users
mailing list