[mapserver-users] MapServer and 24bit Images
José Pedro Santos
zpsantos1 at hotmail.com
Mon Dec 10 01:07:15 PST 2012
Dear Steve,
I try to do that but didn't work. The image appear all black. I use the Processing directive for the 3 bands and also I remove to test but nothing happen. Can be a problem of image...
To test in the browser if I put Format=image/png:mode=24bit don't work, the error said that is not supported, but If I use FORMAT=PNG24 that work but the image came all black. I'm using the last version of MapServer 6.2.0.
Also with output and without output the image appear all black. I have the image store in PostgreSQL DB with 145MB size.
Any idea?
Best Regards
José Santos
From: Steve.Lime at state.mn.us
To: zpsantos1 at hotmail.com; mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] MapServer and 24bit Images
Date: Fri, 7 Dec 2012 19:41:04 +0000
I’m assuming you’re using MapServer 6.x… If so then your output format may be the issue. GD doesn’t support 24-bit output, just 8-bit. Try deleting the OUTPUTFORMAT
and setting IMAGETYPE PNG24 and see if that works.
Steve
From: José Pedro Santos [mailto:zpsantos1 at hotmail.com]
Sent: Friday, December 07, 2012 8:36 AM
To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] MapServer and 24bit Images
Hi Steve,
Thanks for the information. Basically I want only to display the layer (as WMS service) in the browser for testing or a real client. The layer have 3 bands and is a 24bit image
My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters):
OUTPUTFORMAT # Parameter Outputformat
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png;mode=24bit"
EXTENSION PNG
IMAGEMODE RGB
END # End parameter Outputformat
LAYER # beginning of the layer parameter
NAME "fapartest"
TYPE RASTER
STATUS ON
DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' password='****' schema='public' table='mytable' mode='2'"
PROCESSING "NODATA=0"
PROCESSING "SCALE=AUTO"
PROCESSING "BANDS=1,2,3"
.........
I don't have class parameter since I don't want to classify the map just visualize the information. Any idea?
Best Regards and thanks,
José Santos
> From:
Steve.Lime at state.mn.us
> To: zpsantos1 at hotmail.com;
mapserver-users at lists.osgeo.org
> Subject: RE: [mapserver-users] MapServer and 24bit Images
> Date: Tue, 4 Dec 2012 19:26:01 +0000
>
> I display true-color imagery all the time. I suspect that's not what you're trying to do though. You'll have to be more specific on format, perhaps post a layer definition?
>
> Steve
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saint
> Sent: Monday, December 03, 2012 10:06 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] MapServer and 24bit Images
>
> Dear all,
>
> I would like to have this confirmation, MapServer support 24bit image with 3 bands? I have one 24bit image 1 band and I can see in the browser but the other with 3 bands I can't. Only appear the the outline line of the class e not the image.
>
> Many thanks
> José Santos
>
>
>
> -----
> José Santos
> GIS Analyst
> --
> View this message in context:
http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121210/e8c5f73f/attachment.htm>
More information about the MapServer-users
mailing list