[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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I try to execute :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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&amp;imgsize=3D489+367&amp;mapsize=3D489+367&amp;img=
ext=3D399306+43548+400256+44259&amp;layers=3Dparcele&amp;mode=3Dnquerymap=
&amp;qlayer=3Dparcele&amp;saveQuery=3Dtrue&amp;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&amp;imgsize=3D489+367&amp;mapsize=3D489+367&amp;i=
mgext=3D399306+43548+400256+44259&amp;layers=3Dparcele&amp;mode=3Dnquerym=
ap&amp;qlayer=3Dparcele&amp;saveQuery=3Dtrue&amp;imgshape=3D100+100+200+2=
00+100+200</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of web interface=20
definition<BR>#<BR>WEB<BR>&nbsp; TEMPLATE "loadXML.html"<BR>&nbsp; =
MINSCALE=20
200<BR>&nbsp; MAXSCALE 2500000<BR>&nbsp; IMAGEPATH "/tmp/"<BR>&nbsp; =
IMAGEURL=20
"/upload/"<BR>&nbsp; LOG "demo.log"<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>QUERYMAP<BR>&nbsp; SIZE 600 =
480<BR>&nbsp; STATUS=20
ON<BR>&nbsp; STYLE HILITE<BR>&nbsp; COLOR 200 200 0<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of reference=20
map<BR>#<BR>REFERENCE<BR>&nbsp; STATUS ON<BR>&nbsp; IMAGE=20
../images/init_ref_mok.png<BR>&nbsp; EXTENT 387000 29000 419500 =
54500<BR>&nbsp;=20
SIZE 140 112<BR>&nbsp; COLOR -1 -1 -1<BR>&nbsp; OUTLINECOLOR 0 255=20
255<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of =
legend<BR>#<BR>LEGEND<BR>&nbsp;=20
KEYSIZE 18 12<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; TYPE=20
BITMAP<BR>&nbsp;&nbsp;&nbsp; SIZE MEDIUM<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 =

89<BR>&nbsp; END<BR>&nbsp; STATUS ON<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of =
scalebar<BR>#<BR>SCALEBAR<BR>&nbsp;=20
IMAGECOLOR 255 255 255<BR>&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp; POSITION=20
ul<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 =
0<BR>&nbsp;&nbsp;&nbsp; SIZE=20
tiny<BR>&nbsp; END<BR>&nbsp; SIZE 200 3<BR>&nbsp; COLOR 0 0 0<BR>&nbsp; =
UNITS=20
METERS<BR>&nbsp; INTERVALS 4<BR>&nbsp; STATUS ON<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of layer =
definitions<BR>#</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;LAYER<BR>&nbsp;&nbsp; =
CONNECTIONTYPE=20
postgis<BR>&nbsp;&nbsp; NAME "parcele"<BR>&nbsp;&nbsp; GROUP=20
"parcele"<BR>&nbsp;&nbsp; CONNECTION "user=3Dusername password=3Dpwd =
dbname=3Dkata=20
host=3Dlocalhost"<BR>&nbsp;&nbsp; DATA "the_geom from =
katp"<BR>&nbsp;&nbsp; STATUS=20
ON<BR>&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp; MAXSCALE =
15000<BR>&nbsp;&nbsp;=20
LABELITEM "parcela"<BR>&nbsp;&nbsp; LABELMAXSCALE 5000<BR>&nbsp;&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp; #COLOR 255 255 =
255<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
NAME Parcele<BR>&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL=20
"PIKE"<BR>&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 255=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
MINFEATURESIZE=20
10<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINDISTANCE =

2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
CC<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
SMALL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR =
255 255=20
255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;=20
END<BR>&nbsp;&nbsp; HEADER "loadXML.html"<BR>&nbsp;&nbsp; TEMPLATE=20
"parcela_queryXML.html"<BR>&nbsp;&nbsp; TOLERANCE =
0<BR>&nbsp;END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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--