[mapserver-users] Bug or User error? MINSIZE not working

thomas bonfort thomas.bonfort at gmail.com
Thu Feb 3 23:14:53 PST 2011


what are you trying to obtain?

* minsize/maxsize and minwidth/maxwidth are only used when doing
scale-dependent scaling of symbols (either by using sizeunits
different than pixels, or by having the symbolscaledenom activated)
* symbol STYLE is deprecated, and dots and caps are now set at the style level:
style
 width 1
 pattern 1 3 end
 color "#aaaaaa"
end

--
thomas

On Fri, Feb 4, 2011 at 07:11, Stephen Woodbridge
<woodbri at swoodbridge.com> wrote:
> On 2/4/2011 12:19 AM, Rahkonen Jukka wrote:
>>
>> Hi,
>>
>> Documentation shows that MINSIZE under CLASS definitions, not STYLE.
>> Have you tried to place it there?
>
> Thanks, I did notice that after I posted. Sadly it does not work there
> either. It seems to be documented under both STYLE and CLASS as things have
> been getting reworked in this area of the code. I player with setting
> MAXSIZE and that seems to work as expected, but I think MINSIZE is broken. I
> check it on both 5.6.5 and 5.6.6.
>
> I can write it up as a bug tomorrow.
>
> -Steve W
>
>> -Jukka Rahkonen-
>>
>> Stephen Woodbridge wrote:
>>
>>
>>> Hi All,
>>
>>> Thomas maybe you know this?
>>
>>> I have a layer:
>>
>>    SYMBOL
>>      NAME "dots"
>>      TYPE SIMPLE
>>      STYLE 1 3 END
>>    END
>>    LAYER
>>      NAME "World Admin-1 Z1"
>>      GROUP "cb"
>>      STATUS DEFAULT
>>      TYPE LINE
>>      DATA "not-nt2/10m-admin-1-states-provinces-lines-shp"
>>      PROJECTION "init=epsg:4326" END
>>      MAXSCALEDENOM  50000000
>>      MINSCALEDENOM   5000000
>>      CLASS
>>        STYLE
>>          COLOR "#aaaaaa"
>>          SYMBOL "dots"
>>          WIDTH 1
>>          MINSIZE 8000.0
>>        END
>>      END
>>    END
>>
>>
>>> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>>
>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
>> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>> SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS
>> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>>
>>
>>> I can not get any of these lines to turn off. I have tried, variations
>>
>> of large MINSIZE values, commenting out the SYMBOL, using SIZE or WIDTH.
>>
>> No value of MINSIZE seems to have any impact. A large number of the
>> lines are under 5 pixels at the scale I'm using 28M. The lines display
>> fine I just need to turn off the short ones to declutter the image.
>>
>>> I spent all night on this with no success so I guess its time to ask.
>>
>> -Steve W
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> 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