[Mapserver-users] cant c top layer

nida Khan nida at webstar.co.uk
Wed Jan 15 05:49:57 PST 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> </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> </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   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> </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> </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> </DIV>
<DIV><FONT size=3D2>My map file is like this</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>      <BR>LAYER # start of =
the=20
"district" layer object<BR>  CONNECTIONTYPE postgis<BR>  NAME=20
"ward_freq"<BR>  CONNECTION "host=3D127.0.0.1 port=3D5432 =
user=3Dpostgres=20
password=3Dblah dbname=3Dtest"<BR>   DATA "wkb_geometry=20
from city"<BR>  STATUS ON<BR>  TYPE POLYGON<BR> =20
TRANSPARENCY 20<BR>  MINSCALE 150000<BR>  LABELITEM=20
"total_freq"<BR>  #LABELMAXSCALE 310000<BR> =20
CLASS<BR>    TEMPLATE =
"ttt_query.html"<BR>    NAME=20
"ward_freq"<BR>    COLOR 255 207 =
165<BR>   =20
OUTLINECOLOR 0 0 0<BR>   # BACKGROUNDCOLOR 0 0 =
0<BR>   =20
LABEL<BR>      POSITION=20
CC<BR>      FONT=20
fritqat-italic<BR>      TYPE=20
truetype<BR>      SIZE=20
6<BR>      COLOR 0 0 0  =
<BR>    END=20
#End of LABEL<BR>  END #End of Class Object<BR>END # end of layer=20
object</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>    <BR># to display river on the =
map<BR>LAYER=20
# start of the "river" layer object<BR>  CONNECTIONTYPE =
postgis<BR> =20
NAME "river"<BR>  CONNECTION "host=3D127.0.0.1 port=3D5432 =
user=3Dpostgres=20
password=3Dblah dbname=3Dtest"<BR>  DATA "the_geom from =
river"<BR>  STATUS=20
ON<BR>  TYPE LINE<BR> =20
METADATA<BR>        "DISCRIPTION"=20
"RIVER"<BR>         =
"RESULT_FIELDS"=20
"feat_code"<BR>  END<BR>  CLASS<BR>    TEMPLATE =

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

CONNECTIONTYPE postgis<BR>  NAME "points"<BR>  CONNECTION=20
"host=3D127.0.0.1 port=3D5432 user=3Dpostgres password=3Dblah =
dbname=3Dtest"<BR> =20
DATA "the_geom from code_point"  <BR>  STATUS ON<BR>  =
TYPE=20
POINT<BR>  CLASS<BR>    NAME=20
"codepoint"<BR>    COLOR 0 0 0<BR>    =
OUTLINECOLOR=20
255 89 89<BR>    SYMBOL 'circle'<BR>    =
SIZE=20
5<BR>  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