[mapserver-users] NQUERYMAP
Alfred Kleva
alfred.kleva@siol.net
Wed, 24 Apr 2002 21:42:48 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_004C_01C1EBD8.FA6AA180
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Hi !
I try to execute :
http://localhost/cgi-bin/mapserv3.6?map=3D/data/www/gis_ms/demo5_krem_tes=
t/parcele.map&imgsize=3D489+367&mapsize=3D489+367&imgext=3D399306+43548+4=
00256+44259&layers=3Dparcele&mode=3Dnquerymap&qlayer=3Dparcele&saveQuery=3D=
true&imgshape=3D100+100+200+200+100+200
MS returns :
#########################################################################=
############
Internal Server Error
The server encountered an internal error or misconfiguration and was =
unable to complete your request.=20
Please contact the server administrator, root@gissrv.gis and inform them =
of the time the error occurred, and anything you might have done that =
may have caused the error.=20
More information about this error may be available in the server error =
log.
#########################################################################=
#############
Here is my map file :
#####################################
NAME MITJA
STATUS ON
SIZE 600 480
SYMBOLSET ../symbols/symbols35.sym
FONTSET /data/www/fonts/font.list
EXTENT 387000 29000 420000 55400
UNITS METERS
SHAPEPATH "/data/www/gis_ms/data"
#
# Start of web interface definition
#
WEB
TEMPLATE "loadXML.html"
MINSCALE 200
MAXSCALE 2500000
IMAGEPATH "/tmp/"
IMAGEURL "/upload/"
LOG "demo.log"
END
QUERYMAP
SIZE 600 480
STATUS ON
STYLE HILITE
COLOR 200 200 0
END
#
# Start of reference map
#
REFERENCE
STATUS ON
IMAGE ../images/init_ref_mok.png
EXTENT 387000 29000 419500 54500
SIZE 140 112
COLOR -1 -1 -1
OUTLINECOLOR 0 255 255
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
OUTLINECOLOR 0 0 0
POSITION ul
LABEL
COLOR 0 0 0
SIZE tiny
END
SIZE 200 3
COLOR 0 0 0
UNITS METERS
INTERVALS 4
STATUS ON
END
#
# Start of layer definitions
#
LAYER
CONNECTIONTYPE postgis
NAME "parcele"
GROUP "parcele"
CONNECTION "user=3Dusername password=3Dpwd dbname=3Dkata =
host=3Dlocalhost"
DATA "the_geom from katp"
STATUS ON
TYPE POLYGON
MAXSCALE 15000
LABELITEM "parcela"
LABELMAXSCALE 5000
CLASS
#COLOR 255 255 255
NAME Parcele
SYMBOL "PIKE"
OUTLINECOLOR 0 255 0
LABEL
MINFEATURESIZE 10
MINDISTANCE 2
POSITION CC
SIZE SMALL
COLOR 255 255 255
END
END
HEADER "loadXML.html"
TEMPLATE "parcela_queryXML.html"
TOLERANCE 0
END
END # Map File
#####################################
Thanks
Lp Alfred Kleva
>From Slovenia
------=_NextPart_000_004C_01C1EBD8.FA6AA180
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I try to execute :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://localhost/cgi-bin/mapserv3.6?map=3D/data/www/gis_ms/demo5_=
krem_test/parcele.map&imgsize=3D489+367&mapsize=3D489+367&img=
ext=3D399306+43548+400256+44259&layers=3Dparcele&mode=3Dnquerymap=
&qlayer=3Dparcele&saveQuery=3Dtrue&imgshape=3D100+100+200+200=
+100+200">http://localhost/cgi-bin/mapserv3.6?map=3D/data/www/gis_ms/demo=
5_krem_test/parcele.map&imgsize=3D489+367&mapsize=3D489+367&i=
mgext=3D399306+43548+400256+44259&layers=3Dparcele&mode=3Dnquerym=
ap&qlayer=3Dparcele&saveQuery=3Dtrue&imgshape=3D100+100+200+2=
00+100+200</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>MS returns :</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>################################################################=
#####################</FONT></DIV>
<DIV>
<H1>Internal Server Error</H1>The server encountered an internal error =
or=20
misconfiguration and was unable to complete your request.=20
<P>Please contact the server administrator, root@gissrv.gis and inform =
them of=20
the time the error occurred, and anything you might have done that may =
have=20
caused the error.=20
<P>More information about this error may be available in the server =
error=20
log.</P></DIV>
<DIV><FONT face=3DArial=20
size=3D2>################################################################=
######################</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is my map file :</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>#####################################</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>NAME MITJA<BR>STATUS ON<BR>SIZE 600=20
480<BR>SYMBOLSET ../symbols/symbols35.sym<BR>FONTSET=20
/data/www/fonts/font.list<BR>EXTENT 387000 29000 420000 55400<BR>UNITS=20
METERS<BR>SHAPEPATH "/data/www/gis_ms/data"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of web interface=20
definition<BR>#<BR>WEB<BR> TEMPLATE "loadXML.html"<BR> =
MINSCALE=20
200<BR> MAXSCALE 2500000<BR> IMAGEPATH "/tmp/"<BR> =
IMAGEURL=20
"/upload/"<BR> LOG "demo.log"<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>QUERYMAP<BR> SIZE 600 =
480<BR> STATUS=20
ON<BR> STYLE HILITE<BR> COLOR 200 200 0<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of reference=20
map<BR>#<BR>REFERENCE<BR> STATUS ON<BR> IMAGE=20
../images/init_ref_mok.png<BR> EXTENT 387000 29000 419500 =
54500<BR> =20
SIZE 140 112<BR> COLOR -1 -1 -1<BR> OUTLINECOLOR 0 255=20
255<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of =
legend<BR>#<BR>LEGEND<BR> =20
KEYSIZE 18 12<BR> LABEL<BR> TYPE=20
BITMAP<BR> SIZE MEDIUM<BR> COLOR 0 0 =
89<BR> END<BR> STATUS ON<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of =
scalebar<BR>#<BR>SCALEBAR<BR> =20
IMAGECOLOR 255 255 255<BR> OUTLINECOLOR 0 0 0<BR> POSITION=20
ul<BR> LABEL<BR> COLOR 0 0 =
0<BR> SIZE=20
tiny<BR> END<BR> SIZE 200 3<BR> COLOR 0 0 0<BR> =
UNITS=20
METERS<BR> INTERVALS 4<BR> STATUS ON<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of layer =
definitions<BR>#</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> LAYER<BR> =
CONNECTIONTYPE=20
postgis<BR> NAME "parcele"<BR> GROUP=20
"parcele"<BR> CONNECTION "user=3Dusername password=3Dpwd =
dbname=3Dkata=20
host=3Dlocalhost"<BR> DATA "the_geom from =
katp"<BR> STATUS=20
ON<BR> TYPE POLYGON<BR> MAXSCALE =
15000<BR> =20
LABELITEM "parcela"<BR> LABELMAXSCALE 5000<BR> =20
CLASS<BR> #COLOR 255 255 =
255<BR> =20
NAME Parcele<BR> SYMBOL=20
"PIKE"<BR> OUTLINECOLOR 0 255=20
0<BR> =20
LABEL<BR> =
MINFEATURESIZE=20
10<BR> MINDISTANCE =
2<BR> POSITION=20
CC<BR> SIZE=20
SMALL<BR> COLOR =
255 255=20
255<BR> END<BR> =20
END<BR> HEADER "loadXML.html"<BR> TEMPLATE=20
"parcela_queryXML.html"<BR> TOLERANCE =
0<BR> END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>END # Map File<BR></FONT><FONT =
face=3DArial=20
size=3D2>#####################################</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Lp Alfred Kleva</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>From =
Slovenia</FONT></DIV></BODY></HTML>
------=_NextPart_000_004C_01C1EBD8.FA6AA180--