5.0 - use of qstring_validation_pattern for attribute queries

Mike Saunt mikesaunt at GMAIL.COM
Tue Sep 25 11:25:44 EDT 2007


Hi All

I was wondering whether anyone has an example of the METADATA key for
qstring_validation_pattern that is required for v5.0 layers that are to be
attribute queried?

I would like to be able to accept any string (as through my app you can't
inject the values)

I've tried the following qstring_validation_pattern /^[0-9]*$/ and
qstring_validation_pattern '.' but neither seem to match (the first throws a
symbol definition error):

LAYER
        NAME Ward
        TYPE POLYGON
        STATUS OFF
        CONNECTIONTYPE OGR
        CONNECTION "Overlays\CouncilDemocracy\Ward_Boundaries_2004.TAB"
        TOLERANCEUNITS METERS
        METADATA
            qstring_validation_pattern '.'
        END
        CLASS
            STYLE
              COLOR -1 -1 -1
            END
            STYLE
              OUTLINECOLOR 0 0 0
              WIDTH 2
            END
        END
    END

I've also tried as TYPE QUERY...

Any help would be greatly appreciated

Cheers
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070925/fbd04804/attachment.html


More information about the mapserver-users mailing list