there is my layer's definition :
LAYER
VALIDATION
ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*'
#ID_REG '[[a-zA-Z0-9]{0,10},??]*'
END
INCLUDE ../layers/bd/adn_station_max_v.map
CLASSGROUP BASSIN
NAME adn_station_bassin
END
LAYER
On Tue, Aug 21, 2012 at 5:38 PM, Marc-André Trottier
marcandre_trott...@hotmail.com wrote:
there is my layer's definition :
LAYER
VALIDATION
ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*'
#ID_REG '[[a-zA-Z0-9]{0,10},??]*'
END
INCLUDE
You probably need to quote:
'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*'
#ID_REG' '[[a-zA-Z0-9]{0,10},??]*'
And I would be very suspicious that '#ID_REG' is a value identifier
because of the '#' character.
-Steve W
On 8/21/2012 11:38 AM, Marc-André Trottier wrote:
here is an example of two class in 'adn_station_max_v.map' :
CLASS
NAME Information non disponible (grande échelle)
EXPRESSION ( '[etat]' = 'GRIS' AND [id_bassin] in '%ID_BASSIN%')
GROUP BASSIN
MINSCALEDENOM 0
MAXSCALEDENOM 15
STYLE
SYMBOL 'circle'
Typically the SQL syntax is column in (a,b,c,d)
So based on this
[id_bassin] in '%ID_BASSIN%'
would be problematic I think because your syntax is:
column in 'string'
Which is not valid. Also what is your validation for %ID_BASSIN%?
Is something like this? ^\([0-9]+(,[0-9]+)*\)$
where
END
END
END
David.
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Tuesday, August 21, 2012 1:16 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users
Subject: Re: [mapserver-users] validation block
Typically the SQL syntax is column in (a,b,c,d)
So based on this
[id_bassin] in '%ID_BASSIN%'
would be problematic I think because your syntax is:
column in 'string'
Which is not valid. Also what is your validation for %ID_BASSIN%?
Is something like