[Geomoose-users] Unsupported output format (image/png;bits=8)

Robert R. Raiz raizrobert at gmail.com
Wed Aug 7 07:40:42 PDT 2013


I managed to find out the cause of this error. If the param value is
declared, it will not take consideration of any other OUTPUTFORMAT other
than the one with MIMETYPE "image/png;bits=8"
example of param:
<map-source name="parcels" type="mapserver">
                <file>./demo/parcels/parcels.map</file>
                <layer name="parcels" status="on"/>
                <param name="FORMAT" value="image/png;bits=8"/>
 </map-source>

If I remove that param, GeoMoose displays any other OUTPUTFORMAT from my
map template. I did not notice it before as I have a script that brings in
the mapbook all the layers, params and so on from my mapfile.

I will come back shortly with my findings on this post as well:
http://lists.osgeo.org/pipermail/geomoose-users/2013-July/005108.html


On Wed, Jul 24, 2013 at 5:02 PM, Robert R. Raiz <raizrobert at gmail.com>wrote:

> Thank you Brent,
>
> Unfortunately, I still get that error even with your settings.
> I am using 6.2.1. It appears like it is hardcoded somewhere, dunno. The
> mapfile is quite straightforward, no complicated stuff. The only version
> which works (but does not display png icons well) is the one from the first
> emails. Did not see this type of errors before. Strange.
>
>
> On Wed, Jul 24, 2013 at 4:53 PM, Brent Fraser <bfraser at geoanalytic.com>wrote:
>
>>  Here's the definition I appear to be using:
>>
>>     IMAGETYPE AGG_PNG
>>     OUTPUTFORMAT
>>         NAME  'AGG_PNG'
>>         DRIVER AGG/PNG
>> #        MIMETYPE "image/png;mode=24bit"
>>         MIMETYPE "image/png"
>>         IMAGEMODE RGBA    # renders IMAGECOLOR transparent
>>         EXTENSION "png"
>>         FORMATOPTION "INTERLACE=false"
>>         FORMATOPTION "TRANSPARENT=ON"
>>         TRANSPARENT ON
>>         FORMATOPTION "QUANTIZE_FORCE=ON"
>>         FORMATOPTION "QUANTIZE_DITHER=off"
>>         FORMATOPTION "QUANTIZE_COLORS=256"
>>     END
>>
>> Which version of Mapserver are you using?
>>
>> Best Regards,
>> Brent Fraser
>>
>> On 7/24/2013 7:37 AM, Robert R. Raiz wrote:
>>
>> I just tried it out. Both:
>>
>>  WEB
>>  METADATA
>>  'ows_title' 'Parcel Maps'
>>  'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:900913 EPSG:4269 EPSG:2277'
>>  'ows_enable_request' '*'
>>  'ows_onlineresource' 'http://www.geomoose.org'
>>  END
>>  END
>>
>>  OUTPUTFORMAT
>>   NAME "png8"
>>   DRIVER AGG/PNG8
>>   MIMETYPE "image/png; mode=8bit"
>>   IMAGEMODE RGB
>>   EXTENSION "png"
>>  END
>>
>>  And:
>>
>>         OUTPUTFORMAT
>>   NAME "png32"
>>   DRIVER AGG/PNG
>>   MIMETYPE "image/png; mode=32bit"
>>   IMAGEMODE RGBA
>>   EXTENSION "png"
>>  END
>>
>> Both return the same error. I think the syntax is quite ok, I do not see
>> what could be wrong as there are a few simple lines.
>> If I put DRIVER AGG/PNG32 is returns another error: loadOutputFormat():
>> General error message. OUTPUTFORMAT clause references driver AGG/PNG32, but
>> this driver isn't configured.
>>
>>
>>
>>
>
>
> --
> *Raiz Roland Robert*
>
>
>


-- 
*Raiz Roland Robert*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130807/43f0472d/attachment.html>


More information about the Geomoose-users mailing list