Hello Mark,

Unfortunately no. You'll be doing a lot of copying and pasting. Alternatively you could just use an include file for each re-used LABEL object (http://www.mapserver.org/mapfile/Include.html), which would shorted your mapfie.

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




Mark Volz wrote:
Hello,

I have a layer that contains many different classes. Can we apply a single label to all the classes in a layer?

For Example can we make a map file like this:

LAYER

        CLASS

EXPRESSION
                STYLE

        CLASS

                EXPRESSION

                STYLE

….
LABEL #for all classes

        COLOR

        …

END #Layer

As opposed to making a layer file like this:

LAYER

        CLASS

                EXPRESSION

                STYLE

                LABEL

        CLASS

                EXPRESSION

                STYLE

                LABEL

        ...

END #Layer

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to