On 14/07/11 22:35, Nicolas Chenier wrote:
Good day all,

This is a bump as I never received an answer... Quick update - I updated
my binary to 6.0.1 but this issue remains:

I am investigating an issue where the background in the PNG generated by
the example map that comes with MapServer changes from a red-orange
color (with MapServer 5.x) to purple (with MapServer 6.x). The font also
changes. (See attached)

OUTLINECOLOR seems to be interpreted differently in the two
versions.
In 6.0, OUTLINECOLOR is used for the fill symbol (you can
see that the polygon outline is missing, but there is a
lot of blue in the fill).  This behaviour is described in
the 6.0 documentation.
In 5.6, OUTLINECOLOR seems to be used for the polygon outline.

The change may have something to do with the rendering
overhaul and/or AGG / GD differences.

To get a blue polygon outline in 6.0, you could change from:

      STYLE
        COLOR 255 153 102
        OUTLINECOLOR 0 0 204
        SYMBOL 1
        SIZE 2
      END

to:

      STYLE
        COLOR 255 153 102
        SYMBOL 1
        SIZE 2
      END
      STYLE
        OUTLINECOLOR 0 0 204
        WIDTH 1
      END

The font looks similar, except for the scalebar.


HÃ¥vard

The data, symbols, fonts and map files are not touched, the only thing
that changes is the cgi-bin 'mapserv' binary between MS5 (5.6.5) and MS6
(6.0.0).

Any help would be greatly appreciated!

Thank you,

Nic


test.map (the tests that come with MapServer documentation):

MAP
   NAME "Testing"
   EXTENT -0.5 50.977222 0.5 51.977222
   #IMAGETYPE JPEG
   #IMAGETYPE PNG24
   IMAGETYPE PNG
   IMAGECOLOR 255 255 255
   STATUS ON
   SIZE 200 200
   FONTSET "fonts.txt"
   SYMBOLSET "symbols.txt"

   SCALEBAR
     STATUS EMBED
     POSTLABELCACHE TRUE
     STYLE 0
     UNITS METERS
     SIZE 150 3
     POSITION LR
     TRANSPARENT TRUE
     COLOR 0 0 0
     IMAGECOLOR 242 255 195
     BACKGROUNDCOLOR 255 255 255
     LABEL
       TYPE BITMAP
       SIZE TINY
       COLOR 0 0 0
       POSITION UR
       BUFFER 10
     END
   END

   LEGEND
     IMAGECOLOR 255 255 255
   END

   WEB
     METADATA
       "key1" "value1"
       "key2" "value2"
       "key3" "value3"
       "key4" "value4"
     END
   END

   PROJECTION
     "init=epsg:4326"
   END

   LAYER
     NAME "RASTER"
     TYPE RASTER
     PROJECTION
       "init=epsg:4326"
     END
     DATA "raster.tif"
     PROCESSING "BANDS=1"
     STATUS DEFAULT
   END

   LAYER
     NAME "POLYGON"
     TYPE POLYGON
     PROJECTION
       "init=epsg:4326"
     END
     STATUS DEFAULT
     DATA "polygon"
     METADATA
       "key1" "value1"
       "key2" "value2"
       "key3" "value3"
       "key4" "value4"
     END
     CLASSITEM "FNAME"
     CLASS
       NAME "0"
       METADATA
         "key1" "value1"
         "key2" "value2"
         "key3" "value3"
         "key4" "value4"
       END
       STYLE
         COLOR 255 153 102
         OUTLINECOLOR 0 0 204
         SYMBOL 1
         SIZE 2
       END
     END
     CLASS
       NAME "1"
       EXPRESSION "foo"
       STYLE
         COLOR 255 153 102
         OUTLINECOLOR 0 0 204
         SYMBOL 1
         SIZE 2
       END
     END

   END

   LAYER
     NAME "LINE"
     TYPE LINE
     PROJECTION
       "init=epsg:4326"
     END
     TRANSPARENCY 1
     STATUS DEFAULT
     DATA "line"
     CLASSITEM "FNAME"
     CLASS
       NAME "0"
       STYLE
         COLOR 0 153 0
         SYMBOL 1
         SIZE 3
       END
     END
     CLASS
       NAME "1"
       EXPRESSION "foo"
       STYLE
         COLOR 0 153 0
         SYMBOL 1
         SIZE 3
       END
     END
   END

   LAYER
     NAME "POINT"
     EXTENT -0.5 51.0 0.5 52.0
     TYPE POINT
     PROJECTION
       "init=epsg:4326"
     END
     STATUS DEFAULT
     DATA "point"
     CLASSITEM "FNAME"
     LABELITEM "FNAME"
     CLASS
       NAME "0"
       STYLE
         COLOR 0 0 0
         SYMBOL 1
         SIZE 13
       END
       STYLE
         COLOR 204 204 204
         SYMBOL 1
         SIZE 7
       END
       LABEL
         TYPE TRUETYPE
         FONT "Vera"
         SIZE 10
         COLOR 0 0 0
       END

       TEMPLATE "point.html"
     END
     CLASS
       NAME "1"
       EXPRESSION "foo"
       STYLE
         COLOR 0 0 0
         SYMBOL 1
         SIZE 13
       END
     END
   END

   LAYER
     NAME "INLINE"
     TYPE POINT
     PROJECTION
       "init=epsg:4326"
     END
     STATUS DEFAULT
     FEATURE
       POINTS -0.2 51.5 END
     END
     CLASS
       NAME "0"
       STYLE
         COLOR 0 0 0
         SYMBOL 1
         SIZE 3
       END
     END
   END

   LAYER
     NAME "INLINE-PIXMAP-RGBA"
     TYPE POINT
     TRANSPARENCY ALPHA
     DEBUG ON
     PROJECTION
       "init=epsg:4326"
     END
     STATUS OFF
     FEATURE
       POINTS 0.2 51.7 END
     END
     CLASS
       NAME "0"
       STYLE
         SYMBOL 'xmarks-png'
       END
       LABEL
         COLOR 0 0 0
       END
     END
   END

LAYER
     NAME "INLINE-PIXMAP-PCT"
     TYPE ANNOTATION
     DEBUG ON
     TRANSPARENCY ALPHA
     PROJECTION
       "init=epsg:4326"
     END
     STATUS DEFAULT
     FEATURE
       POINTS 0.2 51.2 END
     END
     CLASS
       NAME "0"
       STYLE
         SYMBOL 'home-png'
       END
       TEXT "."
       LABEL
         COLOR 0 0 0
       END
     END
   END

END







symbols.txt:
SYMBOLSET
     SYMBOL
         NAME 'circle'
         TYPE ellipse
         FILLED true
         POINTS
           1 1
         END
     END

     SYMBOL
         NAME 'xmarks-png'
         TYPE PIXMAP
         IMAGE 'xmarks.png'
     END

     SYMBOL
         NAME 'home-png'
         TYPE PIXMAP
         IMAGE 'home.png'
     END
END


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to