[mapserver-users] Painting outside a polygon.
Christy Nieman
cnieman at dmsolutions.ca
Mon Apr 20 08:17:07 PDT 2009
Hi,
You can set the IMAGECOLOR parameter for the map (see
http://mapserver.org/mapfile/map.html), which sets the background colour
for the map. Then your coloured polygons would be drawn on top of the
background colour.
Regards,
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnieman at dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca
Ernesto Barrera wrote:
>
>
> 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