Hi,
I'm trying to use runtime substitution to replace the DATA setting of the
Mapfile at runtime. I'm running in tile mode and using GRD raster format.
Here's the mapfile:
MAP
NAME Blah2
STATUS ON
SHAPEPATH C:/Contours/FSGrids
PROJECTION init=epsg:26918 END
LAYER
hi Ryan,
try to add the validation pattern inside the layer tag
METADATA
'file_validation_pattern'[A-Z0-9._%+-|'\(\)]
'default_file'ultima_imatge #--- this is to give a
value when you don't put the file=value in the url call
END
VALIDATION
'file'
Worked like a charm, thanks!
Ryan
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Helen San Segundo
Navazo
Sent: May 21, 2012 12:23
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Runtime Substitution Not Working
(but with different versions of mapserver Postgis)
Capitalisation might be the problem... I'll try that...
Thanks,
Brent
--- On Sun, 3/14/10, Ben Madin li...@remoteinformation.com.au wrote:
From: Ben Madin li...@remoteinformation.com.au
Subject: Re: [mapserver-users] runtime substitution
:
From: pcr...@pcreso.com pcr...@pcreso.com
Subject: Re: [mapserver-users] runtime substitution not working
To: mapserver-users@lists.osgeo.org
Date: Sunday, March 14, 2010, 1:29 PM
Hi Ben...
I have it working in other setups fine - just this one won't behave.
If I use like '%spp%' pass spp=TAR
the wildcards at the
mapfile level.
like '%' || '%spp%' || '%'
Josh
--- On Sun, 3/14/10, pcr...@pcreso.com pcr...@pcreso.com wrote:
From: pcr...@pcreso.com pcr...@pcreso.com
Subject: Re: [mapserver-users] runtime substitution not working
To: mapserver-users@lists.osgeo.org
Date: Sunday, March 14
G'day Brent,
It might not matter, but you have double %% in the DATA statement you have
passed,
and for whatever reason - I recevied advice from this list or OpenLayers list -
I have all my variable names capitalised in the query:
WHERE transferdate =
Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of pcr...@pcreso.com
Sent: Thursday, March 11, 2010 10:22 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] runtime substitution not working
Hi,
I'm obviously
Hi,
I'm obviously doing something wrong, but can't see what it is... I have a
Postgis table of species occurences I want to pass a variable to the mapfile
to select which speciesusing runtime substitution.
The relevant DATA statement (joining species in the catch to locations in the
station)