[mapserver-users] Color the world, but not my country
Daniel Morissette
dmorissette at mapgears.com
Fri Dec 11 11:57:42 PST 2015
I think the MASK layer should do what you want:
http://mapserver.org/development/rfc/ms-rfc-79.html
Daniel
On 2015-12-11 2:37 PM, Wim Vanbelle wrote:
> Dear,
>
> I have a country shapefile and I would like to style everything, besides
> the one feature in the polygon.
>
> This is a shapefile layer, so I'm wondering on how I could possibly
> improve this:
>
>
> LAYER
> NAME "gadm"
> TYPE POLYGON
> TRANSPARENCY 70
> DATA "gadm28.shp"
> STATUS default
> DEBUG 4
>
> CLASS
> EXPRESSION ("[ISO]" != "NLD")
>
> style
> color "#000000"
> end
>
> END
> END
>
> Basically, I would like to only use the data from the netherlands (NLD),
> because it's a lot less data, and color everything else, besides the one
> feature that it has.
>
> My above (working example) is taking the entire world and only filtering
> out what I want to see.
>
> The goal is to visually create a map of a single country and block out
> all the rest ;-). It's rendered as a tile layer. (gmaps)
>
> Thanks in advance for your feedback.
>
> Best regards,
> Wim
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
Daniel Morissette
http://www.mapgears.com/
T: +1 418-696-5056 #201
http://evouala.com/ - Location Intelligence Made Easy
More information about the MapServer-users
mailing list