[mapserver-users] Smaller polygon sizes when usingmapserver 5.4.1compare to 5.2.0

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Jul 13 18:01:43 PDT 2009


Wonder if it's the same issue as with the polygon size you noted. Even though the shield
is a rect it's rendered as a polygon. Thomas, should polygons be drawn with an outline
same as the fill color if no outline color is specifiied?

Steve

>>> "Nikolai Nikolov" <nnikolov at gypsii.com> 07/09/09 2:43 AM >>>
Hi Steve and everyone,

The images below are from Mapserver 5.2.0 (left) and 5.4.1 (right) of the
same map using AGG. Please note the difference in the size of the road
shields (green shields).  

The following are images from the same servers (Mapserver 5.2.0 (left) and
5.4.1 (right)) of the same map (different zoom) using GD.  Please note that
the two maps are practically the same.

The complete map-file used for the first example is attached to this e-mail.
The parts of it specific to the issue are like that:

 

    OUTPUTFORMAT

        NAME AGG_PNG

        DRIVER AGG/PNG

        MIMETYPE  "image/png"

        IMAGEMODE RGB

        EXTENSION  "png"

        #FORMATOPTION "QUANTIZE_FORCE=TRUE"

        #FORMATOPTION "QUANTIZE_COLORS=256"

        FORMATOPTION "PALETTE_FORCE=TRUE"

        FORMATOPTION "PALETTE=/var/www/html/maps_gypsii/palette.txt"

        FORMATOPTION "INTERLACE=OFF"

    END

 

and

        CLASS

            EXPRESSION /^E/

            LABEL

                PRIORITY 4

                PARTIALS false

                MINFEATURESIZE 10

                MINDISTANCE 300

                COLOR 255 255 255

                BACKGROUNDCOLOR 128 208 100

                BACKGROUNDSHADOWCOLOR 81 145 58

                ANGLE 0

                BUFFER 2

                FONT arial-bold

                TYPE truetype

                SIZE 7

            END

        END

 

The difference for the second examples is in the output format used:

 

    OUTPUTFORMAT

        NAME PNG

        DRIVER GD/PNG

        MIMETYPE  "image/png"

        IMAGEMODE RGB

        EXTENSION  "png"

        #FORMATOPTION "QUANTIZE_FORCE=TRUE"

        #FORMATOPTION "QUANTIZE_COLORS=256"

        FORMATOPTION "PALETTE_FORCE=TRUE"

        FORMATOPTION "PALETTE=/var/www/html/maps_gypsii/palette.txt"

        FORMATOPTION "INTERLACE=OFF"

    END

 

Many thanks,

Nick

 

 

-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] 
Sent: 08 July 2009 15:29
To: Nikolai Nikolov; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Smaller polygon sizes when usingmapserver
5.4.1compare to 5.2.0

 

Perhaps you could post image samples and a mapfile?

 

Steve

 

>>> On 7/8/2009 at 3:05 AM, in message

<65D1C555BE9443A180F3B1697EF7E69F at BenefonUK.local>, "Nikolai Nikolov"

<nnikolov at gypsii.com> wrote:

> Hi everyone,

> 

>  

> 

> I've just upgraded one of my test servers from 5.2.0 to 5.4.1.  I have an

> issue there and I wonder whether anybody have noticed it.  My map
polygones

> seems to be fractionaly smaller (compare to those drawned by 5.2.0).

> 

>  

> 

> I am using the same maps, map files, PHP scripts, etc.  The plygons which

> belong to the same layer, do not quite well "fit" with each other - their

> borders match perfectly before the upgarde to 5.4.1.

> 

>  

> 

> Also, I use BACKGROUNDCOLOR in my map file to create shield like square

> behind a label.  Those squares are now significantly smaller too. 

> 

>  

> 

> I wander what causes this effect and what I should do to achieve the same

> image as with 5.2.0?

> 

>  

> 

> Thanks,

> 

> Nick

> 

>  

> 

>  





More information about the MapServer-users mailing list