[mapserver-users] Difference in test map behavior from MapServer 5.6.5 to 6.0.1
Nicolas Chenier
nicolas.chenier at agr.gc.ca
Thu Jul 14 13:35:55 PDT 2011
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)
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms5.png
Type: image/png
Size: 3776 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110714/4943d7c6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms6.png
Type: image/png
Size: 4769 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110714/4943d7c6/attachment-0001.png>
More information about the MapServer-users
mailing list