[Mapserver-users] Upgrade to 4.0.1 query problem
John Wiley
JWiley at city.parksville.bc.ca
Thu Apr 1 15:59:40 PST 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. 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> </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> </DIV>
<DIV># you may need to change this to match your MapServer build<BR>#IMAGET=
YPE=20
PNG</DIV>
<DIV> </DIV>
<DIV>#<BR># Projection definition, consult the PROJ.4 documentation for=20
parameter discussion<BR>#<BR>#PROJECTION<BR># "proj=3Dutm"<BR># =
=20
"ellps=3DGRS80"<BR># "zone=3D15"<BR># "north"<BR># =20
"no_defs"<BR>#<BR># OR: <BR>#<BR># "init=3Depsg:26915"<BR>#END<=
/DIV>
<DIV> </DIV>
<DIV>#<BR># Start of web interface definition (including WMS enabling=20
metadata)<BR>#<BR>WEB<BR> HEADER Pville_header.html<BR> =
TEMPLATE=20
Pville.html<BR> FOOTER Pville_footer.html<BR> MINSCALE=20
1000<BR> MAXSCALE 155000<BR> IMAGEPATH "set in=20
Pville_init.html"<BR> IMAGEURL "set in Pville_init.html"<BR> =20=
METADATA<BR> WMS_TITLE "UMN MapServer Parksville=20
BC"<BR> WMS_ABSTRACT "This is the UMN MapServer =
application=20
for the City of Parksville located on Vancouver Island."<BR> &nb=
sp;=20
WMS_ACCESSCONSTRAINTS none</DIV>
<DIV> </DIV>
<DIV> # change this value to match your=20
setup<BR> WMS_ONLINERESOURCE "<A=20
href=3D"http://localhost/Parksville/Pville_init.html">http://localhost/Park=
sville/Pville_init.html</A>"</DIV>
<DIV> </DIV>
<DIV> WMS_SRS "EPSG:26915"<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV>QUERYMAP<BR> SIZE 200 200<BR> STATUS ON<BR> =
STYLE=20
HILITE<BR> COLOR 255 0 0<BR>END</DIV>
<DIV> </DIV>
<DIV>#<BR># Start of reference map<BR>#<BR>REFERENCE<BR> IMAGE=20
graphics/reference.gif<BR> EXTENT 401500 5461000 410000 5466600<BR>&n=
bsp;=20
SIZE 120 120<BR> STATUS ON<BR> COLOR -1 -1 -1<BR> =
OUTLINECOLOR=20
255 0 0<BR>END</DIV>
<DIV> </DIV>
<DIV>#<BR># Start of legend<BR>#<BR>LEGEND<BR> KEYSIZE 12 12<BR> =
;=20
LABEL<BR> TYPE BITMAP<BR> SIZE=20
MEDIUM<BR> COLOR 0 0 89<BR> END<BR> =
STATUS=20
ON<BR>END</DIV>
<DIV> </DIV>
<DIV>#<BR># Start of scalebar<BR>#<BR>SCALEBAR<BR> IMAGECOLOR 255 =
255=20
255<BR> LABEL<BR> COLOR 0 0 0<BR> =
SIZE=20
tiny <BR> END<BR> STYLE 1<BR> SIZE =
80=20
2<BR> COLOR 0 0 0<BR> UNITS METERS<BR> INTERVALS =
1<BR> =20
TRANSPARENT FALSE<BR> STATUS EMBED<BR> POSITION LR<BR>END</DIV>=
<DIV> </DIV>
<DIV>#<BR># Start of symbol definitions (we're only using a=20
few)<BR>#<BR>SYMBOL<BR> NAME 'circle'<BR> TYPE ELLIPSE<BR> =
;=20
POINTS 1 1 END<BR> FILLED TRUE<BR>END</DIV>
<DIV> </DIV>
<DIV># Rem March9,04<BR># Start of layer definitions<BR>#<BR>LAYER<BR> =
;=20
NAME Ptest<BR> TYPE RASTER<BR> STATUS OFF<BR> DATA=20
test01.tif<BR> PROCESSING "BANDS=3D1,2,3"<BR> OFFSITE 71 74 =
65<BR>END=20
#LAYER <BR> <BR>LAYER<BR> NAME Pparks<BR> &nbs=
p;=20
TYPE POLYGON<BR> STATUS OFF<BR> DATA=20
Pparks<BR> LABELITEM "NAME"<BR> LABELMAXSCALE=20
5000<BR> CLASS<BR> NAME=20
Parks<BR> COLOR 40 195 48<BR> &nbs=
p;=20
TEMPLATE "Parks.html"<BR> =20
LABEL<BR> MINFEATURESIZE=20
40<BR> MINDISTANCE=20
100<BR> BUFFER=20
10<BR> ANGLE=20
AUTO<BR> POSITION=20
AUTO<BR> SIZE=20
MEDIUM<BR> COLOR 0 0=20
0 <BR> &nb=
sp;=20
END #LABEL <BR> END #CLASS =
=20
<BR> HEADER "Parks_header.html"<BR> FOOTER=20
"Parks_footer.html" <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Pwatercourse<BR> TYPE LINE<BR> =
STATUS=20
OFF<BR> DATA Pwatercourse<BR> CLASS<BR> =
NAME=20
Watercourse<BR> COLOR 49 117 185<BR> END #CLASS =
<BR>END=20
#LAYER</DIV>
<DIV> </DIV>
<DIV><BR>LAYER<BR> NAME Pwatflow<BR> TYPE POLYGON<BR> =
STATUS=20
DEFAULT<BR> DATA Pwatflow<BR> CLASS<BR> =
NAME=20
Pwatflow<BR> COLOR 49 37 185<BR> END #CLASS =
=20
<BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV><BR>LAYER<BR> NAME Ppoints<BR> TYPE POINT<BR> =
DATA=20
Ppoints<BR> STATUS DEFAULT<BR> LABELITEM "NAME"<BR> =20
LABELMAXSCALE 2000<BR> CLASS<BR> NAME=20
'Places'<BR> TEMPLATE "\Points.html"<BR>  =
;=20
STYLE<BR> COLOR 128 255=20
164<BR> SYMBOL=20
'circle'<BR> SIZE 7<BR> =
END=20
#STYLE<BR> LABEL<BR> =20
MINFEATURESIZE 10<BR> MINDISTANCE=20
20<BR> BUFFER 5<BR> &n=
bsp;=20
ANGLE AUTO<BR> POSITION=20
AUTO<BR> SIZE=20
SMALL<BR> COLOR 128 255 164<BR> &n=
bsp;=20
END #LABEL<BR> END #CLASS<BR> HEADER "Points_header.html"<BR>&n=
bsp;=20
FOOTER "Points_footer.html" <BR>END #LAYER<BR>... and on to the=20
end...</DIV></BODY></HTML>
--=_F9D8D810.C5A4CB77--
More information about the MapServer-users
mailing list