[mapserver-dev] strange behavior when size != gif size (UMN 5.4.2)
teeschke
daniel.teske at web.de
Wed Sep 2 04:15:59 EDT 2009
Hello Steve..
I can recreate the wrong output with your sample-map.
I added an projection
PROJECTION
'init=epsg:31466'
END #PROJECTION
Now I can fire my GetMap-Request:
http://localhost/cgi-bin_ms5.4.2/mapserv.exe?LAYERS=too_small,too_large,just_right&SRS=EPSG:31466&FORMAT=image/png&WIDTH=200&HEIGHT=200&SERVICE=WMS&VERSION=1.1.1&STYLES=&BBOX=0,0,200,200&map=C:/umn_maps/test/symbol_problem.map&REQUEST=GetMap
http://n2.nabble.com/file/n3565396/output.png
I found out that when I using FORMAT=image/gif the output looks nice:
http://localhost/cgi-bin_ms5.4.2/mapserv.exe?LAYERS=too_small,too_large,just_right&SRS=EPSG:31466&FORMAT=image/gif&WIDTH=200&HEIGHT=200&SERVICE=WMS&VERSION=1.1.1&STYLES=&BBOX=0,0,200,200&map=C:/umn_maps/test/symbol_problem.map&REQUEST=GetMap
http://n2.nabble.com/file/n3565396/output.gif
I also tryed to use a gif-symbol, but no change, same problem.
Do you using the Mapservers own CGI-Request or WMS-Request?
thanks, regards,
Daniel
Steve Lime wrote:
>
> Daniel: I just ran some local tests against the 5.4 branch and don't see
> the problem on my dev box (MacOS). I'm using the sample image you supplied
> and a mapfile like the one below. I'm using GD 2.0.35. Are you still
> having the issue? Perhaps something weird like multiple versions of GD on
> the system could cause artifacts like this.
>
> Steve
>
> MAP
> NAME 'testy'
> SIZE 200 200
> EXTENT 0 0 200 200
>
> IMAGETYPE PNG2
>
> OUTPUTFORMAT
> NAME PNG2
> DRIVER 'GD/PNG'
> MIMETYPE 'image/png'
> IMAGEMODE RGB
> EXTENSION 'png'
> END #OUTPUTFORMAT
>
> SYMBOL
> NAME 'some_gif_symbol'
> TYPE PIXMAP
> IMAGE "some_gif_symbol.gif"
> END
>
> LAYER
> NAME 'too_small'
> TYPE POINT
> STATUS DEFAULT
> FEATURE
> POINTS 30 20 END
> END
> CLASS
> STYLE
> SYMBOL 'some_gif_symbol'
> SIZE 10 # equals gif size -3
> END
> END
> END
>
> LAYER
> NAME 'too_large'
> TYPE POINT
> STATUS DEFAULT
> FEATURE
> POINTS 50 100 END
> END
> CLASS
> STYLE
> SYMBOL 'some_gif_symbol'
> SIZE 16 # equals gif size +3
> END
> END
> END
>
> LAYER
> NAME 'just_right'
> TYPE POINT
> STATUS DEFAULT
> FEATURE
> POINTS 100 50 END
> END
> CLASS
> STYLE
> SYMBOL 'some_gif_symbol'
> SIZE 13
> END
> END
> END
> END
>
>>>> teeschke <daniel.teske at web.de> 08/20/09 10:24 AM >>>
>
>
> OUTPUTFORMAT
> NAME png
> DRIVER 'GD/PNG'
> MIMETYPE 'image/png'
> IMAGEMODE RGB
> EXTENSION 'png'
> END #OUTPUTFORMAT
>
>
> --
> View this message in context:
> http://n2.nabble.com/strange-behavior-when-size-gif-size-UMN-5-4-2-tp3479658p3479813.html
> Sent from the Mapserver - Dev mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>
--
View this message in context: http://n2.nabble.com/Re-strange-behavior-when-size-gif-size-UMN-5-4-2-tp3558359p3565396.html
Sent from the Mapserver - Dev mailing list archive at Nabble.com.
More information about the mapserver-dev
mailing list