[MS4W-Users] Image 24 Bit
Jeff McKenna
jmckenna at gatewaygeomatics.com
Fri Nov 23 08:59:43 EST 2012
On 12-11-23 9:27 AM, José Pedro Santos wrote:
> Dear all,
>
> I'm attempting to classify images of 24 bits but I always have the error
> saying this: ........Unable to access file. Attempt to classify 24bit
> image, this is unsupported.
>
> My Mapfile is this one:
>
> ...........
>
> IMAGETYPE "png24"
>
> ..........
>
> OUTPUTFORMAT # Parameter Output
> NAME png24
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> EXTENSION PNG
> IMAGEMODE RGBA
> TRANSPARENT ON
> END # end of parameter Output
>
>
> and in the expression of GetMap I use FORMAT=image/png
>
> In the Layer description I have the special processing directives to
> processed the 3 bands. But If put just 2 appear one empty image not the
> error. I already read some documentation but I can't succeed.
>
> any idea?
>
> Many thanks and best regards,
>
> José Santos
Hello José,
It is difficult for me to comment without testing your local file.
However if I were you I might:
- in your OUTPUTFORMAT object I would:
- change "GD/PNG" to "AGG/PNG"
- change "RGBA" to "RGB"
- remove "TRANSPARENT ON"
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
More information about the MS4W-Users
mailing list