changing color of a single polygon-feature

Fawcett, David David.Fawcett at STATE.MN.US
Tue Apr 19 10:09:13 EDT 2005


Cord, 

It depends on the context.  

If you know which polygons you want to color ahead of time, you could set up a CLASS with an  EXPRESSION that only fits that polygon and set a style to symbolize that poly.  

If this is a dynamic thing, it sounds like you might be looking for a QUERYMAP.  

More info in the docs:  http://mapserver.gis.umn.edu/doc44/mapfile-reference.html 

David Fawcett
Minnesota Office of Environmental Assistance
david.fawcett at moea.state.mn.us
651.215.0200


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Cord Albers
Sent: Tuesday, April 19, 2005 1:36 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] changing color of a single
polygon-feature


Dear list,

I draw polygons with cgi-parameter into a map
(&map_polygon_feature=new&map_polygon_feature_points=...). That works
wonderful.
Now I want to change the color of the polygon. In my map-file I have defined
a layer with a class which drwas polygons in red. I know that I can change
the color of the class with the cgi-parameter
(map_polygon_class_color=0+255+0). But in this case the color of all
polygons in this layer would be changed.

Is there a possiblity to change only the color of a single feature?

Greetings
Cord



More information about the mapserver-users mailing list