[Mapserver-users] Help- Queryproglems
Hochegger Helmut
gis at gmunden.ooe.gv.at
Fri Jul 2 02:44:22 PDT 2004
Hi all
I got a little problem with itemqueries because mapserver returns ..
msQueryByAttributes(): Search returned no results. No matching record(s)
found.. but there are existing and matching records in the .dbf (shape)
file.
!-- MapServer Version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
The query is starting from the index.html with following script:
.....<SCRIPT language=javascript type=text/javascript>
// Funktionen zur Verarbeitung der Formulardaten
// Eingabe Grundstücksnummer
function gnr_senden()
{
var re = new
RegExp("^([.]{0,1})([0-9]{1,5}|[0-9]{1,5}\/{1}[0-9]{1,5})$");
if(!re.test(document.gnrform.gnr.value))
{
alert("Feld Grundtstücksnummer formal falsch oder leer!");
document.gnrform.gnr.value = "";
return;
}
var gstnr = document.gnrform.kgnr.value + document.gnrform.gnr.value;
//( the values look like this 42116+345/5 - gstnr=42116345/5)
var mapurl =
"http://localhost/cgi-bin/mapserv?map=/gmdweb/query.map&qlayer=gstnr_query
&mode=itemquery&mapext=shapes&qitem=gstnr&qstring=" + gstnr;
window.open(mapurl,"Kartenfenster","width=860,height=620,resizable=Yes,sta
tus=Yes,scrollbars=Yes");
}
// Kartenfenster normal öffnen
Mapfile:
MAP
NAME SM
STATUS ON
SIZE 400 400
EXTENT 29767.0000 296500.0000 45500.0000 312300.0000
UNITS METERS
SHAPEPATH "daten"
IMAGECOLOR 230 252 220
WEB
TEMPLATE "gmunden_neu.html"
IMAGEPATH "/programme/apache group/apache/htdocs/tmp/"
IMAGEURL "/tmp/"
END
LAYER
NAME "gstnr_query"
TYPE POLYGON
DATA "grundst"
FILTERITEM "gstnr"
FILTER "%qstring%"
STATUS ON
CLASSITEM "area"
CLASS
EXPRESSION "/./"
COLOR -1 -1 -1
OUTLINECOLOR 0 0 0
END
TEMPLATE "templates/grst_query.html
END
END
Any ideas what´s going wrong ?
Thank´s in advance !
Helmut Hochegger
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.percomp.at
More information about the MapServer-users
mailing list