[mapserver-users] validation block

Stephen Woodbridge woodbri at swoodbridge.com
Tue Aug 21 08:52:58 PDT 2012


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:
> 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
>          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 "REG_ADMIN"
>          NAME "adn_station_reg_admin"
>      END
>
> with these commented lines a got this error :
> msValidateParameter(): Regular expression error. Parameter pattern
> validation failed.
>
> without comment, i got no error.
>
> CLASSGROUP 'BASSIN' contains many class but each class use only
> 'ID_BASSIN' and
> CLASSGROUP 'REG_ADMIN' contains many class but each class use only 'ID_REG'
>
> is it the right thing to do ? or like i thought, the validation block
> can contains only the variable used by the layer ?
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>




More information about the MapServer-users mailing list