[mapserver-users] Painting outside a polygon.

Fawcett, David David.Fawcett at state.mn.us
Mon Apr 20 08:17:48 PDT 2009


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: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ernesto
Barrera
Sent: Monday, April 20, 2009 8:42 AM
To: mapserver-users at lists.osgeo.org
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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list