[Mapserver-users] Upgrade to 4.0.1 query problem

John Wiley JWiley at city.parksville.bc.ca
Thu Apr 1 18:59:40 EST 2004


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_F9D8D810.C5A4CB77
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

I upgraded from 3.6 to 4.0.1 and can not query on lines or points just =
polygon objects return result from the templates.  Can someone point me in =
the right direction... I've included a piece of my map file... for layer =
Ppoints... Please help
=20
#
# Start of map file
#
NAME Pville
STATUS ON
SIZE 600 600
EXTENT 401500 5461000 410000 5466600
UNITS METERS
FONTSET "C:\Inetpub\wwwroot\Parksville\fonts\fonts.list"
SHAPEPATH "data"
IMAGECOLOR 255 255 255
=20
# you may need to change this to match your MapServer build
#IMAGETYPE PNG
=20
#
# Projection definition, consult the PROJ.4 documentation for parameter =
discussion
#
#PROJECTION
#  "proj=3Dutm"
#  "ellps=3DGRS80"
#  "zone=3D15"
#  "north"
#  "no_defs"
#
#  OR:=20
#
#  "init=3Depsg:26915"
#END
=20
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  HEADER Pville_header.html
  TEMPLATE Pville.html
  FOOTER Pville_footer.html
  MINSCALE 1000
  MAXSCALE 155000
  IMAGEPATH "set in Pville_init.html"
  IMAGEURL "set in Pville_init.html"
  METADATA
    WMS_TITLE "UMN MapServer Parksville BC"
    WMS_ABSTRACT "This is the UMN MapServer application for the City of =
Parksville located on Vancouver Island."
    WMS_ACCESSCONSTRAINTS none
=20
    # change this value to match your setup
    WMS_ONLINERESOURCE "http://localhost/Parksville/Pville_init.html"
=20
    WMS_SRS "EPSG:26915"
  END
END
=20
QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END
=20
#
# Start of reference map
#
REFERENCE
  IMAGE graphics/reference.gif
  EXTENT 401500 5461000 410000 5466600
  SIZE 120 120
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END
=20
#
# Start of legend
#
LEGEND
  KEYSIZE 12 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END
=20
#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 0 0 0
    SIZE tiny   =20
  END
  STYLE 1
  SIZE 80 2
  COLOR 0 0 0
  UNITS METERS
  INTERVALS 1
  TRANSPARENT FALSE
  STATUS EMBED
  POSITION LR
END
=20
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END
=20
# Rem March9,04
# Start of layer definitions
#
LAYER
  NAME Ptest
  TYPE RASTER
  STATUS OFF
  DATA test01.tif
  PROCESSING "BANDS=3D1,2,3"
  OFFSITE 71 74 65
END #LAYER =20
 =20
LAYER
   NAME Pparks
   TYPE POLYGON
   STATUS OFF
   DATA Pparks
   LABELITEM "NAME"
   LABELMAXSCALE 5000
   CLASS
     NAME Parks
     COLOR 40 195 48
     TEMPLATE "Parks.html"
     LABEL
       MINFEATURESIZE 40
       MINDISTANCE 100
       BUFFER 10
       ANGLE AUTO
       POSITION AUTO
       SIZE MEDIUM
       COLOR 0 0 0        =20
     END #LABEL     =20
   END #CLASS =20
   HEADER "Parks_header.html"
   FOOTER "Parks_footer.html"  =20
END #LAYER
=20
LAYER
  NAME Pwatercourse
  TYPE LINE
  STATUS OFF
  DATA Pwatercourse
  CLASS
    NAME Watercourse
    COLOR 49 117 185
  END #CLASS=20
END #LAYER
=20

LAYER
  NAME Pwatflow
  TYPE POLYGON
  STATUS DEFAULT
  DATA Pwatflow
  CLASS
    NAME Pwatflow
    COLOR 49 37 185
  END #CLASS =20
END #LAYER
=20

LAYER
  NAME Ppoints
  TYPE POINT
  DATA Ppoints
  STATUS DEFAULT
  LABELITEM "NAME"
  LABELMAXSCALE 2000
  CLASS
    NAME 'Places'
    TEMPLATE "\Points.html"
    STYLE
      COLOR 128 255 164
      SYMBOL 'circle'
      SIZE 7
    END #STYLE
    LABEL
      MINFEATURESIZE 10
      MINDISTANCE 20
      BUFFER 5
      ANGLE AUTO
      POSITION AUTO
      SIZE SMALL
      COLOR 128 255 164
    END #LABEL
  END #CLASS
  HEADER "Points_header.html"
  FOOTER "Points_footer.html" =20
END #LAYER
... and on to the end...


--=_F9D8D810.C5A4CB77
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=3D2>I upgraded from 3.6 to 4.0.1 and can not query on =
lines or=20
points just polygon objects return result from the templates.&nbsp; Can =
someone=20
point me in the right direction... I've included a piece of my map file... =
for=20
layer Ppoints... Please help</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>#<BR># Start of map file<BR>#<BR>NAME Pville<BR>STATUS ON<BR>SIZE =
600=20
600<BR>EXTENT 401500 5461000 410000 5466600<BR>UNITS METERS<BR>FONTSET=20
"C:\Inetpub\wwwroot\Parksville\fonts\fonts.list"<BR>SHAPEPATH=20
"data"<BR>IMAGECOLOR 255 255 255</DIV>
<DIV>&nbsp;</DIV>
<DIV># you may need to change this to match your MapServer build<BR>#IMAGET=
YPE=20
PNG</DIV>
<DIV>&nbsp;</DIV>
<DIV>#<BR># Projection definition, consult the PROJ.4 documentation for=20
parameter discussion<BR>#<BR>#PROJECTION<BR>#&nbsp; "proj=3Dutm"<BR>#&nbsp;=
=20
"ellps=3DGRS80"<BR>#&nbsp; "zone=3D15"<BR>#&nbsp; "north"<BR>#&nbsp;=20
"no_defs"<BR>#<BR>#&nbsp; OR: <BR>#<BR>#&nbsp; "init=3Depsg:26915"<BR>#END<=
/DIV>
<DIV>&nbsp;</DIV>
<DIV>#<BR># Start of web interface definition (including WMS enabling=20
metadata)<BR>#<BR>WEB<BR>&nbsp; HEADER Pville_header.html<BR>&nbsp; =
TEMPLATE=20
Pville.html<BR>&nbsp; FOOTER Pville_footer.html<BR>&nbsp; MINSCALE=20
1000<BR>&nbsp; MAXSCALE 155000<BR>&nbsp; IMAGEPATH "set in=20
Pville_init.html"<BR>&nbsp; IMAGEURL "set in Pville_init.html"<BR>&nbsp;=20=

METADATA<BR>&nbsp;&nbsp;&nbsp; WMS_TITLE "UMN MapServer Parksville=20
BC"<BR>&nbsp;&nbsp;&nbsp; WMS_ABSTRACT "This is the UMN MapServer =
application=20
for the City of Parksville located on Vancouver Island."<BR>&nbsp;&nbsp;&nb=
sp;=20
WMS_ACCESSCONSTRAINTS none</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; # change this value to match your=20
setup<BR>&nbsp;&nbsp;&nbsp; WMS_ONLINERESOURCE "<A=20
href=3D"http://localhost/Parksville/Pville_init.html">http://localhost/Park=
sville/Pville_init.html</A>"</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; WMS_SRS "EPSG:26915"<BR>&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>QUERYMAP<BR>&nbsp; SIZE 200 200<BR>&nbsp; STATUS ON<BR>&nbsp; =
STYLE=20
HILITE<BR>&nbsp; COLOR 255 0 0<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>#<BR># Start of reference map<BR>#<BR>REFERENCE<BR>&nbsp; IMAGE=20
graphics/reference.gif<BR>&nbsp; EXTENT 401500 5461000 410000 5466600<BR>&n=
bsp;=20
SIZE 120 120<BR>&nbsp; STATUS ON<BR>&nbsp; COLOR -1 -1 -1<BR>&nbsp; =
OUTLINECOLOR=20
255 0 0<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>#<BR># Start of legend<BR>#<BR>LEGEND<BR>&nbsp; KEYSIZE 12 12<BR>&nbsp=
;=20
LABEL<BR>&nbsp;&nbsp;&nbsp; TYPE BITMAP<BR>&nbsp;&nbsp;&nbsp; SIZE=20
MEDIUM<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 89<BR>&nbsp; END<BR>&nbsp; =
STATUS=20
ON<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>#<BR># Start of scalebar<BR>#<BR>SCALEBAR<BR>&nbsp; IMAGECOLOR 255 =
255=20
255<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;=
 SIZE=20
tiny&nbsp;&nbsp;&nbsp; <BR>&nbsp; END<BR>&nbsp; STYLE 1<BR>&nbsp; SIZE =
80=20
2<BR>&nbsp; COLOR 0 0 0<BR>&nbsp; UNITS METERS<BR>&nbsp; INTERVALS =
1<BR>&nbsp;=20
TRANSPARENT FALSE<BR>&nbsp; STATUS EMBED<BR>&nbsp; POSITION LR<BR>END</DIV>=

<DIV>&nbsp;</DIV>
<DIV>#<BR># Start of symbol definitions (we're only using a=20
few)<BR>#<BR>SYMBOL<BR>&nbsp; NAME 'circle'<BR>&nbsp; TYPE ELLIPSE<BR>&nbsp=
;=20
POINTS 1 1 END<BR>&nbsp; FILLED TRUE<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV># Rem March9,04<BR># Start of layer definitions<BR>#<BR>LAYER<BR>&nbsp=
;=20
NAME Ptest<BR>&nbsp; TYPE RASTER<BR>&nbsp; STATUS OFF<BR>&nbsp; DATA=20
test01.tif<BR>&nbsp; PROCESSING "BANDS=3D1,2,3"<BR>&nbsp; OFFSITE 71 74 =
65<BR>END=20
#LAYER&nbsp; <BR>&nbsp; <BR>LAYER<BR>&nbsp;&nbsp; NAME Pparks<BR>&nbsp;&nbs=
p;=20
TYPE POLYGON<BR>&nbsp;&nbsp; STATUS OFF<BR>&nbsp;&nbsp; DATA=20
Pparks<BR>&nbsp;&nbsp; LABELITEM "NAME"<BR>&nbsp;&nbsp; LABELMAXSCALE=20
5000<BR>&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp; NAME=20
Parks<BR>&nbsp;&nbsp;&nbsp;&nbsp; COLOR 40 195 48<BR>&nbsp;&nbsp;&nbsp;&nbs=
p;=20
TEMPLATE "Parks.html"<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINFEATURESIZE=20
40<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINDISTANCE=20
100<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER=20
10<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANGLE=20
AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
MEDIUM<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0=20
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nb=
sp;=20
END #LABEL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; END #CLASS&nbsp;=
=20
<BR>&nbsp;&nbsp; HEADER "Parks_header.html"<BR>&nbsp;&nbsp; FOOTER=20
"Parks_footer.html"&nbsp;&nbsp; <BR>END #LAYER</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp; NAME Pwatercourse<BR>&nbsp; TYPE LINE<BR>&nbsp; =
STATUS=20
OFF<BR>&nbsp; DATA Pwatercourse<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; =
NAME=20
Watercourse<BR>&nbsp;&nbsp;&nbsp; COLOR 49 117 185<BR>&nbsp; END #CLASS =
<BR>END=20
#LAYER</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>LAYER<BR>&nbsp; NAME Pwatflow<BR>&nbsp; TYPE POLYGON<BR>&nbsp; =
STATUS=20
DEFAULT<BR>&nbsp; DATA Pwatflow<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; =
NAME=20
Pwatflow<BR>&nbsp;&nbsp;&nbsp; COLOR 49 37 185<BR>&nbsp; END #CLASS&nbsp;=
=20
<BR>END #LAYER</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>LAYER<BR>&nbsp; NAME Ppoints<BR>&nbsp; TYPE POINT<BR>&nbsp; =
DATA=20
Ppoints<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; LABELITEM "NAME"<BR>&nbsp;=20
LABELMAXSCALE 2000<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME=20
'Places'<BR>&nbsp;&nbsp;&nbsp; TEMPLATE "\Points.html"<BR>&nbsp;&nbsp;&nbsp=
;=20
STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 128 255=20
164<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL=20
'circle'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 7<BR>&nbsp;&nbsp;&nbsp; =
END=20
#STYLE<BR>&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
MINFEATURESIZE 10<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINDISTANCE=20
20<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 5<BR>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
ANGLE AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
SMALL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 128 255 164<BR>&nbsp;&nbsp;&n=
bsp;=20
END #LABEL<BR>&nbsp; END #CLASS<BR>&nbsp; HEADER "Points_header.html"<BR>&n=
bsp;=20
FOOTER "Points_footer.html"&nbsp; <BR>END #LAYER<BR>... and on to the=20
end...</DIV></BODY></HTML>

--=_F9D8D810.C5A4CB77--



More information about the mapserver-users mailing list