[mapserver-users] outputformat problem in mapfile
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Tue Nov 17 01:25:47 PST 2009
Hi,
I am serving mostly aerial images and I have not bothered to learn a lot about outputformats. We are using standard jpeg or 24-bit png formats. Rendering from vector data would be much more challenging, especially if band width should be kept low but quality high. This is giving best quality and most network traffic with aerials:
OUTPUTFORMAT
NAME "png24"
MIMETYPE "image/png24"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE RGB
TRANSPARENT FALSE
END
-Jukka-
________________________________
Lähettäjä: 王连波 [mailto:happyforev1 at gmail.com]
Lähetetty: 17. marraskuuta 2009 11:07
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users
Aihe: Re: [mapserver-users] outputformat problem in mapfile
Hi, Jukka
Thank you for your reply, first.
However, if I use other format, how can I make the displayed picture clearer, is not there a win-win way ?
On Tue, Nov 17, 2009 at 4:39 PM, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:
Hi,
Jpeg problem is due to format itself, jpeg cannot be transparent so it will not work in the way you want.
-Jukka Rahkonen-
________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta ???
Lähetetty: 17. marraskuuta 2009 10:15
Vastaanottaja: mapserver-users
Aihe: [mapserver-users] outputformat problem in mapfile
hello all,
I want to display a raster JPEG picture (about 100M) in ka-map through mapserver. However, when I set the outputformat to PNG or GIF in the mapfile, it looks ugly when zoomed out. It is a little better to use JPEG, although it is clear as the origin picture only being zoomed in enough. If I use JPEG as the output format, there is another problem ---only the layer above others can be displayed (I want to display all chosen layers). Any body can help me? Some codes about the raster layer in my mapfile are as following:
IMAGETYPE jpeg
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGBA
EXTENSION "jpg"
TRANSPARENT on
FORMATOPTION QUALITY=100 #value=0-100
END
layer
name test
type raster
status on
data "data/20km.jpg"
class
name "outline"
outlinecolor 255 0 0
end
end
end
BTW, I can not set class name as Chinese characters, otherwise it will become disorderly codes in ka-map. Any suggestion are welcome. My operating system is FreeBSD7.1Release, my locale is UTF-8.
--
天道酬勤
--
天道酬勤
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091117/2b338a32/attachment.htm>
More information about the MapServer-users
mailing list