[Mapserver-users] provinces in different color?

Alessandro Galasso agalasso at gndci.cs.cnr.it
Tue Jun 10 00:27:43 PDT 2003


yes... you have to have an attribute in the dbf file on which base the
distiction between provinces:

  LAYER
    NAME "prov"
    STATUS OFF
    DATA "prov"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 3
    TOLERANCEUNITS PIXELS
    TEMPLATE "templates/provTemplate.html"
    CLASSITEM SIGLA   #this is the dbf field name
    CLASS
      NAME "Cosenza"
      EXPRESSION "CS"  #this mean "features with SIGLA=CS", color red
      SYMBOL 0
      COLOR 255 0 0
    END
    CLASS
      NAME "Crotone"
      EXPRESSION "KR"
      SYMBOL 0
      COLOR 0 255 0     #this mean "features with SIGLA=CS", color green
    END
  END

And so on...
Hope this helps


---
Alessandro Galasso

----- Original Message -----
From: "Chen Fu" <novalet at yahoo.com.cn>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, June 10, 2003 3:00 AM
Subject: [Mapserver-users] provinces in different color?


Hi!
Can mapsever display provinces in different colors?
Any example of such a map file?
Thank you!

=====
Remote Scensing Satellite Ground Station
Chinese Academy of Science

_________________________________________________________
Do You Yahoo!?
Á÷Á¬ÍøÂçÊÀ½çµÄ¡°Ä㡱ÊÇË­£¿
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_prof
ile_study_may2003
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list