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

Nikolai Nikolov nnikolov at gypsii.com
Thu Jul 9 00:42:06 PDT 2009


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

> 

>  

> 

>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090709/64b6bfb4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 11234 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090709/64b6bfb4/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 12319 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090709/64b6bfb4/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 11626 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090709/64b6bfb4/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.gif
Type: image/gif
Size: 12970 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090709/64b6bfb4/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zm9.map
Type: application/octet-stream
Size: 25582 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090709/64b6bfb4/attachment.obj>


More information about the MapServer-users mailing list