[Mapserver-users] cant c top layer

nida Khan nida at webstar.co.uk
Wed Jan 15 08:49:57 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_01C7_01C2BC9C.FDA89880
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi every1,

I have 3 layers in my map file, One polygon, second multiline , third =
point, where point is the top layer.

Problem is, when I draw all three layers I can not c points layer, =
although my polygon layer is   TRANSPARENCY 20.
I could c the point layer when I draw with multiline layer or on its =
own.

either its not drawing the points at all, or if its its underneath the =
polygon layer.... but why? should'nt it be ploting it on top of polygon =
layer???

I appreciate any input
Regards
Nida.

My map file is like this

     =20
LAYER # start of the "district" layer object
  CONNECTIONTYPE postgis
  NAME "ward_freq"
  CONNECTION "host=3D127.0.0.1 port=3D5432 user=3Dpostgres =
password=3Dblah dbname=3Dtest"
   DATA "wkb_geometry from city"
  STATUS ON
  TYPE POLYGON
  TRANSPARENCY 20
  MINSCALE 150000
  LABELITEM "total_freq"
  #LABELMAXSCALE 310000
  CLASS
    TEMPLATE "ttt_query.html"
    NAME "ward_freq"
    COLOR 255 207 165
    OUTLINECOLOR 0 0 0
   # BACKGROUNDCOLOR 0 0 0
    LABEL
      POSITION CC
      FONT fritqat-italic
      TYPE truetype
      SIZE 6
      COLOR 0 0 0 =20
    END #End of LABEL
  END #End of Class Object
END # end of layer object


   =20
# to display river on the map
LAYER # start of the "river" layer object
  CONNECTIONTYPE postgis
  NAME "river"
  CONNECTION "host=3D127.0.0.1 port=3D5432 user=3Dpostgres =
password=3Dblah dbname=3Dtest"
  DATA "the_geom from river"
  STATUS ON
  TYPE LINE
  METADATA
        "DISCRIPTION" "RIVER"
         "RESULT_FIELDS" "feat_code"
  END
  CLASS
    TEMPLATE "ttt_query.html"
    EXPRESSION ([feat_code] =3D 71)
    NAME "river"
    COLOR 0 0 255 =20
   # SYMBOL "solid" =20
    SIZE 2
    OUTLINECOLOR 0 0 0  =20
    BACKGROUNDCOLOR 0 0 0
  END # end of class object
END # end of layer object

LAYER # start of the "points" layer object
  CONNECTIONTYPE postgis
  NAME "points"
  CONNECTION "host=3D127.0.0.1 port=3D5432 user=3Dpostgres =
password=3Dblah dbname=3Dtest"
  DATA "the_geom from code_point" =20
  STATUS ON
  TYPE POINT
  CLASS
    NAME "codepoint"
    COLOR 0 0 0
    OUTLINECOLOR 255 89 89
    SYMBOL 'circle'
    SIZE 5
  END # end of class object
END # end of layer object

------=_NextPart_000_01C7_01C2BC9C.FDA89880
Content-Type: text/html;
	charset="iso-8859-1"
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-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi every1,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I have 3 layers in my map file, One polygon, second =
multiline=20
, third point, where point is the top layer.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Problem is, when I draw all three layers I can not c =
points=20
layer, although my polygon layer is &nbsp; TRANSPARENCY 20.</FONT></DIV>
<DIV><FONT size=3D2>I could c the point layer when I draw with multiline =
layer or=20
on its own.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>either its not drawing the points at all, or if its =
its=20
underneath the polygon layer.... but why? should'nt it be ploting it on =
top of=20
polygon layer???</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I appreciate any input</FONT></DIV>
<DIV><FONT size=3D2>Regards</FONT></DIV>
<DIV><FONT size=3D2>Nida.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>My map file is like this</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>LAYER # start of =
the=20
"district" layer object<BR>&nbsp; CONNECTIONTYPE postgis<BR>&nbsp; NAME=20
"ward_freq"<BR>&nbsp; CONNECTION "host=3D127.0.0.1 port=3D5432 =
user=3Dpostgres=20
password=3Dblah dbname=3Dtest"<BR>&nbsp;&nbsp; DATA "wkb_geometry=20
from&nbsp;city"<BR>&nbsp; STATUS ON<BR>&nbsp; TYPE POLYGON<BR>&nbsp;=20
TRANSPARENCY 20<BR>&nbsp; MINSCALE 150000<BR>&nbsp; LABELITEM=20
"total_freq"<BR>&nbsp; #LABELMAXSCALE 310000<BR>&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp; TEMPLATE =
"ttt_query.html"<BR>&nbsp;&nbsp;&nbsp; NAME=20
"ward_freq"<BR>&nbsp;&nbsp;&nbsp; COLOR 255 207 =
165<BR>&nbsp;&nbsp;&nbsp;=20
OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp; # BACKGROUNDCOLOR 0 0 =
0<BR>&nbsp;&nbsp;&nbsp;=20
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
CC<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT=20
fritqat-italic<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE=20
truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0&nbsp; =
<BR>&nbsp;&nbsp;&nbsp; END=20
#End of LABEL<BR>&nbsp; END #End of Class Object<BR>END # end of layer=20
object</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; <BR># to display river on the =
map<BR>LAYER=20
# start of the "river" layer object<BR>&nbsp; CONNECTIONTYPE =
postgis<BR>&nbsp;=20
NAME "river"<BR>&nbsp; CONNECTION "host=3D127.0.0.1 port=3D5432 =
user=3Dpostgres=20
password=3Dblah dbname=3Dtest"<BR>&nbsp; DATA "the_geom from =
river"<BR>&nbsp; STATUS=20
ON<BR>&nbsp; TYPE LINE<BR>&nbsp;=20
METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "DISCRIPTION"=20
"RIVER"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
"RESULT_FIELDS"=20
"feat_code"<BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; TEMPLATE =

"ttt_query.html"<BR>&nbsp;&nbsp;&nbsp; EXPRESSION ([feat_code] =3D=20
71)<BR>&nbsp;&nbsp;&nbsp; NAME "river"<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 =
255&nbsp;=20
<BR>&nbsp;&nbsp; # SYMBOL "solid"&nbsp; <BR>&nbsp;&nbsp;&nbsp; SIZE=20
2<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0&nbsp;&nbsp; =
<BR>&nbsp;&nbsp;&nbsp;=20
BACKGROUNDCOLOR 0 0 0<BR>&nbsp; END # end of class object<BR>END # end =
of layer=20
object</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>LAYER # start of the "points" layer object<BR>&nbsp; =

CONNECTIONTYPE postgis<BR>&nbsp; NAME "points"<BR>&nbsp; CONNECTION=20
"host=3D127.0.0.1 port=3D5432 user=3Dpostgres password=3Dblah =
dbname=3Dtest"<BR>&nbsp;=20
DATA "the_geom from code_point"&nbsp; <BR>&nbsp; STATUS ON<BR>&nbsp; =
TYPE=20
POINT<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME=20
"codepoint"<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp; =
OUTLINECOLOR=20
255 89 89<BR>&nbsp;&nbsp;&nbsp; SYMBOL 'circle'<BR>&nbsp;&nbsp;&nbsp; =
SIZE=20
5<BR>&nbsp; END # end of class object<BR>END # end of layer=20
object</FONT></DIV></BODY></HTML>

------=_NextPart_000_01C7_01C2BC9C.FDA89880--




More information about the mapserver-users mailing list