Width in what context? How are you trying use that value?
________________________________
From: mapserver-users <[email protected]> on behalf of 
Basques, Bob (CI-StPaul) <[email protected]>
Sent: Thursday, September 7, 2017 11:18:04 AM
To: [email protected]
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




_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to