[mapserver-dev] strange behavior when size != gif size (UMN 5.4.2)

Steve Lime Steve.Lime at dnr.state.mn.us
Wed Sep 2 18:06:32 EDT 2009


I've been using shp2img. Just tried on another box with 5.4.2 with the attached result (verbatim mapfile I posted earlier).

Are you using the experimental PNG support by chance? Wouldn't think that would have an impact but I think that links 
MapServer against libpng. GD also links against libpng and perhaps there is confusion there if the versions are different?

Steve

>>> On 9/2/2009 at 3:15 AM, in message <1251879359097-3565396.post at n2.nabble.com>,
teeschke <daniel.teske at web.de> wrote:

> 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.ht 
> ml
>> 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 
>> 
>> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: teeschke.png
Type: image/png
Size: 1571 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090902/e9224be6/teeschke.png


More information about the mapserver-dev mailing list