One shapefile, many countries, many colors?

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed Jun 13 12:52:07 EDT 2007


Pascal Ehlert wrote:
> Hi all!
> 
> I used shp2pgsql to insert the definitions of many countries (the
> African continent actually ;)) into my PostGIS enabled database.
> 
> Is there still a way to distinguish between the countries now and assign
> different colors to them?
> ArcView does this in a really nice way so I think it should be possible
> with the MapServer too, isn't it?
> 
> 
> 
> Thank you
> 
> Pascal

Yes, basically you would have to set up a column in the query to be a 
CLASSITEM and have the column represent the color you want. Then in the 
mapfile set up colors for each class.

-Steve W.



More information about the mapserver-users mailing list