[mapserver-users] problems defining outline width using min/max

Fawcett, David (MPCA) david.fawcett at state.mn.us
Thu Aug 26 10:44:28 EDT 2010


Dara,

Take a look at SYMBOLSCALEDENOM in the LAYER block.  This defines the scale at which the line appears 'normal' sized.  You may also need to define a WIDTH in the style.

For the value in SYMBOLSCALEDENOM, if you want this scale to be 1:10,000 the value would be 10000.  Since scales in Web maps are somewhat relative, you will likely take a good guess at a value and then experiment with how it is rendered and tweak the value if needed.

David.

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dara Olson
Sent: Thursday, August 26, 2010 9:11 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] problems defining outline width using min/max

Greetings.
We are using MapServer 5.2.1 and I am having some problems with defining a polygon outline.  I would like the polygon outline to have widths so that when you zoom in it stays wide, but is not too wide when you are zoomed all the way out.  I thought I might be able to do this with min/max widths (see below), but it does not seem to change compared to if I just have the width defined as 2.2.  Is there a way to do this?  Should I be using something other than pixels or should I group into min/max scales?  Any help would be greatly appreciated.
Dara

...
    CLASS
       NAME "Ceded Territories"
            STYLE
            OUTLINECOLOR 140 63 55
            MINWIDTH 2.2
            MAXWIDTH 10
        END
        TEMPLATE "../identify/governmental_units/ceded_identify.html"
    END
END # Ceded Territories

________________________________
Dara Olson
ANA GIS Specialist
Great Lakes Indian Fish & Wildlife Commission
P.O. Box 9, 72682 Maple Street
Odanah, WI 54861
Phone: (715) 682-6619 ext.129
Email: dolson at glifwc.org<mailto:dolson at glifwc.org>
http://maps.glifwc.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100826/58fcd87a/attachment.html


More information about the mapserver-users mailing list