[mapserver-users] itemquery and validation
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Tue May 27 08:23:20 PDT 2014
Correct. We do it this way since many drivers don't require a QITEM. For example, you could author a qstring that leverages multiple columns.
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eichner, Andreas - SID
Sent: Monday, May 26, 2014 7:15 AM
To: 'Leehan'; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] itemquery and validation
> here s the part of the mapfile :
> LAYER
> NAME emprise
> STATUS on
> TYPE POLYGON
> CONNECTIONTYPE POSTGIS
> CONNECTION "host=10.3.1.51 dbname=xxx user=xxx
> password=xxx port=5432"
> DATA "geom from activite.emprise using unique gid using srid = 2154"
> TOLERANCE 1 #tampon autour du clic souris
> TOLERANCEUNITS kilometers
> VALIDATION
> "numope" "^[A-Z]{1}[0-9]{6}$"
> END #end validation
> CLASSITEM "tpeope"
>
According to the source you need to define a validation pattern for qstring on LAYER or in WEB section, too.
This looks a bit weird to me as you specify the QITEM. Therefore a single validation pattern for QSTRING must cover all possible QITEM values... I've never used such modes but may be some else can shed some light on this.
_______________________________________________
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