Dear listers,<br><br>I have searched the archives through and through, but I can't get a working solution. I am trying to build a url to query Mapserver. But whatever I try, I always get the same result, which are the contents of my EMPTY template, as defined in my mapfile.<br>
The url I've built is this one, which I hoped to give me a list of all items starting with 'R':<br><a href="http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv">http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv</a>?<br>
map=/var/www/fgs/chameleon/map/PS2011SB.map<br>&mode=itemnquery<br>&qlayer=Grootste2010<br>&qitem=Gemnaam<br>&qstring=/^R/<br><br>I've tried this one too, which I hoped would give me the item 'Rotterdam':<br>
<a href="http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv">http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv</a>?<br>map=/var/www/fgs/chameleon/map/PS2011SB.map<br>&mode=itemquery<br>&qlayer=Grootste2010<br>
&qstring=('Gemnaam'='Rotterdam')<br><br>I also tried escaped characters (%5b and %3d etc,), but every result is the same: nothing.<br><br>Can anyone please help me? (Documentation below.)<br><br>Thanks!<br>
<br>Arlen<br><br>You can find the complete application (in Openlayers) here: <a href="http://mapserver.nrc-handelsblad.com/PS2011SB.html">http://mapserver.nrc-handelsblad.com/PS2011SB.html</a><br><br>************************************************************************************************************<br>
<br>My mapfile looks like this: <br><br>MAP<br>NAME TK2010<br>STATUS ON<br>SIZE 458 542<br>SYMBOLSET ../etc/symbols.sym<br>EXTENT 13000 305000 279000 620000<br>UNITS METERS<br>SHAPEPATH "../data"<br>IMAGECOLOR 255 255 255<br>
FONTSET ../etc/fonts.txt<br><br>WEB<br> IMAGEPATH "/var/www/fgs/chameleon/htdocs/tmp/"<br> IMAGEURL "tmp/"<br> LOG "/tmp/gmap.log"<br> EMPTY "<a href="http://mapserver.nrc-handelsblad.com/empty.html">http://mapserver.nrc-handelsblad.com/empty.html</a>"<br>
METADATA<br> "wms_feature_info_mime_type" "text/html"<br> "wms_title" "WMS NRC TK2010"<br> "wms_onlineresource" "<a href="http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv">http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv</a>?"<br>
"wms_srs" "EPSG:28992 EPSG:4326 EPSG:900913"<br> END<br>END<br><br>LEGEND<br> IMAGECOLOR 255 255 255<br> KEYSIZE 20 14<br> POSITION ul<br> LABEL<br> FONT sans<br> TYPE TRUETYPE<br>
SIZE 8<br> OFFSET 0 -2<br> END<br> STATUS off<br>END<br><br>PROJECTION<br> "proj=longlat"<br> "ellps=WGS84"<br> "datum=WGS84"<br> "no_defs"<br>END<br><br>OUTPUTFORMAT<br>
NAME "aggpng24"<br> DRIVER AGG/PNG<br> MIMETYPE "image/png"<br> IMAGEMODE RGB<br> EXTENSION "png"<br>END<br><br>QUERYMAP<br> STATUS on<br> STYLE hilite<br> COLOR 255 255 0<br> SIZE 320 160<br>
END<br><br>SYMBOL<br> NAME "Stembureau"<br> TYPE ellipse<br> FILLED true<br> POINTS<br> 1 1<br> END<br>END<br><br>LAYER<br> NAME "Grootste2010"<br> METADATA<br> "wms_feature_info_mime_type" "text/html"<br>
"wms_title" "Grootste partij 2010"<br> "DESCRIPTION" "Verkiezingen TK2010"<br> "LAYER" "TK2010"<br> "qstring_validation_pattern" '.'<br>
END<br> TYPE POINT<br> STATUS on<br> <br> DATA "/var/www/fgs/chameleon/data/PS2011/PS2011stembureausDispWGS84.shp"<br> <br> TOLERANCE 10<br> OPACITY 100<br><br> HEADER "PS2011SBheader.html"<br>
TEMPLATE "PS2011SBquerytemplate.html"<br> FOOTER "PS2011SBfooter.html"<br><br> CLASS<br> STYLE<br> SYMBOL "Stembureau"<br> SIZE 9<br> COLOR 109 208 122<br> OUTLINECOLOR 52 162 67<br>
END<br> MAXSCALEDENOM 5000000<br> END<br>END<br><br><br>*************************************************************************************************************<br>My querytemplate look like this:<br><!-- MapServer Template --><br>
[ID]<BR><br>[SBNR]<BR><br>[GEMNR]<BR><br>[Gemnaam]<BR><br>[SBNAAM]<BR><br><br>(etc.)<br><br><br>