[Geomoose-users] Unsupported output format (image/png;bits=8)
Brent Fraser
bfraser at geoanalytic.com
Tue Jul 23 07:53:58 PDT 2013
Try
MIMETYPE "image/png; mode=8bit"
Best Regards,
Brent Fraser
On 7/23/2013 8:10 AM, Robert R. Raiz wrote:
> Hello Mark,
>
> Sorry, I forgot to mention that I am not using at all geomoose_globals.map
>
> I've set my parameters to use my simbolset, fonts.. the only thing I
> kept from geomoose_globals. map is the WEB-METADATA section.
>
> If I paste in the mapfile what you just forwarded..well..I keep
> getting the same message:
>
> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException code="InvalidFormat">
> msWMSLoadGetMapParams(): Image handling error. Unsupported output
> format (image/png;bits=8).
> </ServiceException>
> </ServiceExceptionReport>
>
> I tried all the outputformats in the mapserver documentation but I
> keep getting this error. I thought it is hard-coded somewhere to use
> the outputformat mentioned in the first email.
>
>
> On Tue, Jul 23, 2013 at 4:33 PM, Mark Volz <MarkVolz at co.lyon.mn.us
> <mailto:MarkVolz at co.lyon.mn.us>> wrote:
>
> Robert,
>
> geomoose_globals.map, which is included on most of the demo map
> files assigns png8 as the default output format. This format
> works well for vector layers, but not raster layers. You might
> want to change your map file like such:
>
> #do not include geomoose globals which uses png8
>
> #Include ../ geomoose_globals.map
>
> #add the portions from geomoose_globals that you need
>
> FONTSET "../../fonts/fontset.list"
>
> SYMBOLSET "../../symbols/symbol.sym"
>
> # prevent the pink screen of death on large monitors
>
> MAXSIZE 10000
>
> #TRANSPARENT TRUE
>
> # Does this stuff even need to be set in MS 6.x? JSK
>
> OUTPUTFORMAT
>
> NAME 'agg/png'
>
> DRIVER AGG/PNG
>
> IMAGEMODE RGBA
>
> FORMATOPTION "TRANSPARENT=TRUE"
>
> TRANSPARENT ON
>
> MIMETYPE "image/png"
>
> END
>
> IMAGETYPE agg/png # use the output format named 'agg/png'
>
> IMAGECOLOR 255 255 255
>
> Mark Volz, GISP
>
> GIS Specialist
>
> *From:*geomoose-users-bounces at lists.osgeo.org
> <mailto:geomoose-users-bounces at lists.osgeo.org>
> [mailto:geomoose-users-bounces at lists.osgeo.org
> <mailto:geomoose-users-bounces at lists.osgeo.org>] *On Behalf Of
> *Robert R. Raiz
> *Sent:* Tuesday, July 23, 2013 8:04 AM
> *To:* geomoose-users at lists.osgeo.org
> <mailto:geomoose-users at lists.osgeo.org>
> *Subject:* Re: [Geomoose-users] Unsupported output format
> (image/png;bits=8)
>
> Sorry, somehow gmail keyboard shortcuts made a fool out of me and
> sent the email to soon;
>
> The problem is that now, all my png images (PIXMAP) render really
> badly. They look quite bad.
>
> Whatever I try to modify in the map file at the OUTPUTFORMAT
> parameter, I keep getting:
>
> <ServiceException code="InvalidFormat">
>
> msWMSLoadGetMapParams(): Image handling error. Unsupported output
> format (image/png;bits=8).
>
> I tried to change every parameter but I still get that error. If I
> use MIMETYPE "image/png;bits=8" it works with vector files, but my
> icons (PIXMAP - png images) do not render well.
>
> Any Ideas?
>
> On Tue, Jul 23, 2013 at 4:00 PM, Robert R. Raiz
> <raizrobert at gmail.com <mailto:raizrobert at gmail.com>> wrote:
>
> Hello all,
>
> I am struggling with this error.
>
> In the past (with Mapserver5) I was using:
>
> IMAGETYPE png24
>
> OUTPUTFORMAT
>
> NAME 'AGGA'
>
> DRIVER 'AGG/PNG'
>
> IMAGEMODE RGBA
>
> MIMETYPE "image/png"
>
> EXTENSION "png"
>
> END
>
>
> Now I have:
>
> OUTPUTFORMAT
>
> NAME "png8"
>
> DRIVER AGG/PNG8
>
> MIMETYPE "image/png;bits=8"
>
> EXTENSION "png"
>
> TRANSPARENT ON
>
> IMAGEMODE RGBA
>
> FORMATOPTION "QUANTIZE_FORCE=on"
>
> FORMATOPTION "QUANTIZE_COLORS=256"
>
> FORMATOPTION "INTERLACE=OFF"
>
> END
>
> --
> */Raiz Roland Robert/*
>
>
>
> --
> */Raiz Roland Robert/*
>
>
>
>
> --
> */Raiz Roland Robert/*
>
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130723/d4623c99/attachment-0001.html>
More information about the Geomoose-users
mailing list