[mapserver-users] Mapserver and filter in version 6 solved

Lars-Göran Edholm lars-goran.edholm at sandviken.se
Fri Nov 23 08:03:01 PST 2012


Hi!
Many thanks to Jukka Rahkonen.
Solution:

layer
.
.
metadata
  WMS_TITLE "Ny Sökt fastighet"
    'default_fasokex' '210176494'
  end
.
.
 VALIDATION
 'fasokex'      '^[0-9]'
   END
.
.

classitem "FNR"
.
class
      name "Fastighetsyta"
	  EXPRESSION ([FNR] IN ('%fasokex%')) 	
..


call like:
fastsok="210176493,210176495"
http://172.20.1.218/cgi-bin/mapserv52/mapserv.exe?fasokex="+fastsok+"&map=....
or in calling mapfish print;
"customParams":{"TRANSPARENT":true,"fasokex":'210176493,210176495'}


Mvh
Lars-Göran Edholm    tel 026/24 14 36, telefontid dagligen 08.30-09.30
1:e byggnadsinspektör
Bygg- och miljökontoret
811 80 Sandviken
lars-goran.edholm at sandviken.se


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121123/c2430137/attachment.htm>


More information about the MapServer-users mailing list