I am not sure if this meets your case or not. If you simply want to set the background color of the map to blue, you can set IMAGECOLOR 0 0 255 at the map level. (of course, you may want to pick a nicer shade of blue...)
http://mapserver.org/mapfile/map.html This will put a blue background behind in the areas not covered by your polygons. David. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ernesto Barrera Sent: Monday, April 20, 2009 8:42 AM To: [email protected] Subject: [mapserver-users] Painting outside a polygon. Hi there, I'm dealing with a layer containing polygon data for a given country (shapefile). Color inside the polygon can be easily set via COLOR style parameter. I'm just looking for a way to apply color to the outside of the polygon (i.e.:, paint the surrounding sea in solid blue) Is there such a method inside Mapserver? Is there a way to 'reverse' the shapefile to indicate that the wanted feature is not inside the boudaries but the complementary area? Thanks in advance, PD.: My single layer is like this LAYER NAME mycountry DATA mycountry.shp TYPE POLYGON STATUS ON CLASS NAME "boundaries" STYLE COLOR 255 0 0 # country area shown in red END END END _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
