[mapserver-users] Validation example wanted

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Fri Apr 29 01:54:57 PDT 2011


Hi,

Great, it works with plain "." I was just reading a mail from yesterday by Stephen Woodbridge telling

"  I do not think there is a global OFF switch for validation, but where
validation is required you can include the regex validation string of
/./ which means match anything except a null string, or to also accept a
null string then use /.*/  "

You can see the supermarkets here:
http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,borders,POI_free_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,6558020,1615375,7978444&SRS=EPSG:3067&STYLES=&tag=shop&value=supermarket

-Jukka-


thomas bonfort wrote:
 
> have you tried without the surrounding slashes? i.e.
VALIDATION
   tag "."
   value "."
 END


> On Fri, Apr 29, 2011 at 10:37, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:
>> Hi,
>
>> Could somebody tell how can I make my WMS requests to validate? I am sending WMS GetMaps with two extra parameters "tag" and "value" by adding them to the end of the request like &tag=amenity&value=supermarket.
>
>> Tag and value can be anything and they should be used inside the following LAYER-DATA
>
>> DATA "way from (select (way),osm_id,tags from osm_point where (tags @>'%tag%=>%value%')) as foo using unique osm_id using srid=3067"
>
>> I have tried to put a validation block in LAYER
>> VALIDATION
>>    tag "/./"
>>    value "/./"
>> END
>
>> I have also tried to add these two lines into WEB-METADATA
>> tag_validation_pattern "/./"
>> value_validation_pattern "/./"
>
>> Because I am here you can guess that my trials were not successful.
>
>> I am using MS 6.0 beta7.  Queries with tag and value worked with 5.6.1 version.
>
>> -Jukka Rahkonen-
> _______________________________________________
> 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