How to Improve WMS Image Quality? - SOLVED!

Pericles S. Nacionales naci0002 at UMN.EDU
Tue Dec 26 14:39:32 EST 2006


You don't have to define an output format for GIF/PNG/JPEG formats 
unless you want to change their default behavior.

So, just changing IMAGETYPE GIF to IMAGETYPE PNG24 will work.

See http://biometry.gis.umn.edu/tutorial/example1-5.html or maybe the 
entire section 1 (mapfiles). Or download the materials from here: 
http://www.foss4g2006.org/contributionDisplay.py?contribId=20&sessionId=60&confId=1

-Perry

Bill Thoen wrote:
> David,
> 
> I think my biggest problem at this point in learning MapSever is not 
> knowing how things go together as the MapServer documentation is a bit 
> spotty and scattered. But you gave me the clue and by guessing I 
> eventually hit on defining an OUTPUTFORMAT object for gif images with 
> IMAGEMODE set to RGB instead of PC256. Now it looks good -- Thanks!
> 
>   OUTPUTFORMAT
>      NAME gif
>      DRIVER "GD/GIF"
>      MIMETYPE "image/gif"
>      IMAGEMODE RGB
>      EXTENSION "gif"
>   END
> 
> - Bill Thoen
> 
> Fawcett, David wrote:
>> Bill,
>> I am guessing that you either have not designated an imagetype in your
>> map file, or you are using 8 bit png or gif. 
>> For maps with air photos, you will likely want to use jpeg or png24.
>> PNG24 looks very nice, but the output images can be pretty large and
>> therefore slower to serve up. 
>> David.
>> -----Original Message-----
>> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
>> Behalf Of Bill Thoen
>> Sent: Tuesday, December 26, 2006 9:32 AM
>> To: MAPSERVER-USERS at LISTS.UMN.EDU
>> Subject: [UMN_MAPSERVER-USERS] How to Improve WMS Image Quality?
>>
>>
>> After getting my last message swamped by an out-of-control 
>> autoresponder, I thought I'd better try again. So here's my question
>> again:
>>
>> I've linked DOQ images from the Microsoft TerraServer's WMS, but they
>> look terrible in my MapServer map. It looks like they are being rendered
>> in 8-bit grayscale. When I display these same images with a GetMap URL
>> in my browser they look fine. Could someone tell me what I need to do to
>> get these to look better in MapServer?
>>
>>   
> 
> .
> 



More information about the mapserver-users mailing list