[MS4W-Users] Image 24 Bit

José Pedro Santos zpsantos1 at hotmail.com
Fri Nov 23 10:33:12 EST 2012




> Date: Fri, 23 Nov 2012 09:59:43 -0400
> From: jmckenna at gatewaygeomatics.com
> To: ms4w-users at lists.maptools.org
> Subject: Re: [MS4W-Users] Image 24 Bit
> 
> 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/
> 
> 
Hi Jeff, 

Thanks again for your reply. I try to change but didn't work. Do you think that have something to do with the Format=image/png?? Just PNG don't reply 8 bits images?

Also I have another raster image but that one works well. This have 3 bands and values between 0 and 255. I'm using MapServer version 6.2. 

Another idea? 

Best Regards,
José Santos 













> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20121123/7a903351/attachment.htm 


More information about the MS4W-Users mailing list