Hi Jörg,

I've been playing around with the MINSCALE etc. When using an OUTLINECOLOR you 
also need to set the MINWIDTH and MAXWIDTH on the SYMBOL to change sizes with 
resolution. I think this is the issue you were seeing in your example. 
For example to keep a constant outline width of 1 you can use the following:

STYLE
    SYMBOL "circle"
    SIZE 100
    MAXSIZE 200
    MINSIZE 12
    COLOR "#F9A03F"
    OUTLINECOLOR "#813405"
    MINWIDTH 1
    MAXWIDTH 1
END

There is a working example at https://app.mapserverstudio.net/#akyRvQvW - if 
you zoom in you will notice the circles get bigger (up to 200 pixels) but the 
outline width remains at 1 pixel. 

Seth

--
web:https://geographika.net & https://mapserverstudio.net
twitter: @geographika

On Wed, Oct 11, 2023, at 5:06 PM, Jörg Thomsen (WhereGroup) via MapServer-users 
wrote:
> Hello,
>
> I am curious about min- an maxsize in MS 8.
>
> I found in the docs:
>> MAXSIZE [double]
>> Removed in version 8.0.
>
> And I know don't now how to determine the maxsize of a point Symbol.
>
> maxsize still works, but not as expected. There is no error-message and 
> the maxsize auf the point-symbol is set, but when I zoom in more than 
> the scale of SYMBOLSCALEDENOM the outline of the symbol ist getting and 
> bigger.
>
> Here are two layers I tested with and you can test the WMS with
> https://schulung.foss.academy/cgi-bin/mapserv?map=minmaxsize&mode=browse&template=openlayers&layer=all
> (you have to zoom in to see what happens)
>
>     LAYER
>        NAME 'point'
>        TYPE POINT
>        DATA 'pois_p.shp'
>
>        METADATA
>          'ows_title' 'Points'
>        END
>
>        SYMBOLSCALEDENOM 100000
>        CLASS
>          NAME 'points'
>          STYLE
>            SYMBOL 'circle'
>            SIZE 20
>            COLOR 218 247 195
>            OUTLINECOLOR 250 250 0
>          END
>        END
>      END
>
>      LAYER
>        NAME 'pointmaxsize'
>        TYPE POINT
>        DATA 'pois_p.shp'
>
>        METADATA
>          'ows_title' 'Pointsmaxsize'
>        END
>
>        SYMBOLSCALEDENOM 100000
>        CLASS
>          NAME 'points'
>          STYLE
>            SYMBOL 'circle'
>            SIZE 20
>            MAXSIZE 30
>            COLOR 100 100 250
>            OUTLINECOLOR 0 0 250
>          END
>        END
>      END
>
> -- 
> Viele Grüße,
> Jörg Thomsen
> ---------------------------------------------
> Aufwind durch Wissen!
> Web-Seminare und Online-Schulungen
> bei der www.foss-academy.com
> ---------------------------------------------
>
>
> Jörg Thomsen
> WhereGroup GmbH
> Bundesallee 23
> 10717 Berlin
> Germany
>
> Tel: +49 (0)30 / 5130 278 74
> Fax: +49 (0)30 / 5130 278 11  
>
> joerg.thom...@wheregroup.com
> www.wheregroup.com
>
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
>
> -------------------------------
> Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
> _______________________________________________
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to