[mapserver-users] validation block

2012-08-21 Thread Marc-André Trottier
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

Re: [mapserver-users] validation block

2012-08-21 Thread thomas bonfort
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

Re: [mapserver-users] validation block

2012-08-21 Thread Stephen Woodbridge
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:

Re: [mapserver-users] validation block

2012-08-21 Thread Marc-André Trottier
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'

Re: [mapserver-users] validation block

2012-08-21 Thread Stephen Woodbridge
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

Re: [mapserver-users] validation block

2012-08-21 Thread Fawcett, David (MPCA)
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

Re: [mapserver-users] validation block

2012-08-21 Thread Stephen Woodbridge
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