[Mapserver-users] provinces in different color?

Alessandro Galasso agalasso@gndci.cs.cnr.it
Tue, 10 Jun 2003 09:27:43 +0200


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@yahoo.com.cn>
To: <mapserver-users@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@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users