[mapserver-users] GRABBING some default CGI parameters in MapFile.

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Thu Sep 7 09:18:04 PDT 2017


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/0daebd4a/attachment.htm>


More information about the MapServer-users mailing list