<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Well, I'm confused. AFAIK, "FORMAT" is
not a valid standard mapserver CGI parameter, and looking at the
demo parcels.map file, we're not doing mapserver run-time
substitution. The mapbook entry might be a cut-and-paste error
from a WMS entry (is FORMAT valid for WMS?). Maybe Geomoose is
changing FORMAT to some other keyword?<br>
<br>
Ah, never mind the above. I forgot Geomoose 2.6 does not use
mapserver CGI protocol; it uses WMS protocol to communicate with
mapserver...<br>
<br>
At any rate, I think there is a bug in our geomoose_globals.map on
line 23:<br>
<pre>
<span class="k"><span class="k">MIMETYPE</span> <span class="s">"image/png;bits=8"
should be:
</span>MIMETYPE</span> <span class="s">"image/png; mode=8bit"</span></pre>
<br>
Not that it really matters, I don't think mapserver will output an
8 bit png, but I'd have to do some testing to confirm that.<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
On 8/13/2013 8:19 AM, Eli Adam wrote:<br>
</div>
<blockquote
cite="mid:CACqBkM9ZvWcc046tHhKHatcK8k5yZ1rW=RGHogd0yX-Cv9i=-A@mail.gmail.com"
type="cite">
<div dir="ltr">
<p dir="ltr">On Wed, Aug 7, 2013 at 7:40 AM, Robert R. Raiz <<a
moz-do-not-send="true" href="mailto:raizrobert@gmail.com"
target="_blank">raizrobert@gmail.com</a>> wrote:</p>
<p dir="ltr">> 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"<br>
> example of param:<br>
> <map-source name="parcels" type="mapserver"><br>
>
<file>./demo/parcels/parcels.map</file><br>
> <layer name="parcels" status="on"/><br>
> <param name="FORMAT"
value="image/png;bits=8"/><br>
> </map-source><br>
</p>
<p dir="ltr">Tricky. </p>
<p dir="ltr">I see that you got that from the demo example, <a
moz-do-not-send="true"
href="http://trac.osgeo.org/geomoose/browser/geomoose2/branches/geomoose-2.6/conf/mapbook.xml#L102"
target="_blank">http://trac.osgeo.org/geomoose/browser/geomoose2/branches/geomoose-2.6/conf/mapbook.xml#L102</a>
I'm wondering if the documentation should be updated in <a
moz-do-not-send="true"
href="http://www.geomoose.org/docs/mapbook.html#map-source"
target="_blank">http://www.geomoose.org/docs/mapbook.html#map-source</a>
or in the adding a layer section or the geomoose_globals.map
section of <a moz-do-not-send="true"
href="http://www.geomoose.org/howto/layer.html"
target="_blank">http://www.geomoose.org/howto/layer.html</a></p>
<p dir="ltr">Is there a reason to include the FORMAT parameter
in the mapbook? </p>
<p dir="ltr">Thoughts?</p>
<p dir="ltr">Eli<br>
<br>
><br>
><br>
> 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.<br>
><br>
> I will come back shortly with my findings on this post as
well: <a moz-do-not-send="true"
href="http://lists.osgeo.org/pipermail/geomoose-users/2013-July/005108.html"
target="_blank">http://lists.osgeo.org/pipermail/geomoose-users/2013-July/005108.html</a><br>
><br>
><br>
> On Wed, Jul 24, 2013 at 5:02 PM, Robert R. Raiz <<a
moz-do-not-send="true" href="mailto:raizrobert@gmail.com"
target="_blank">raizrobert@gmail.com</a>> wrote:<br>
>><br>
>> Thank you Brent,<br>
>><br>
>> Unfortunately, I still get that error even with your
settings.<br>
>> 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.<br>
>><br>
>><br>
>> On Wed, Jul 24, 2013 at 4:53 PM, Brent Fraser <<a
moz-do-not-send="true" href="mailto:bfraser@geoanalytic.com"
target="_blank">bfraser@geoanalytic.com</a>> wrote:<br>
>>><br>
>>> Here's the definition I appear to be using:<br>
>>><br>
>>> IMAGETYPE AGG_PNG<br>
>>> OUTPUTFORMAT<br>
>>> NAME 'AGG_PNG'<br>
>>> DRIVER AGG/PNG<br>
>>> # MIMETYPE "image/png;mode=24bit"<br>
>>> MIMETYPE "image/png"<br>
>>> IMAGEMODE RGBA # renders IMAGECOLOR
transparent<br>
>>> EXTENSION "png"<br>
>>> FORMATOPTION "INTERLACE=false"<br>
>>> FORMATOPTION "TRANSPARENT=ON"<br>
>>> TRANSPARENT ON<br>
>>> FORMATOPTION "QUANTIZE_FORCE=ON"<br>
>>> FORMATOPTION "QUANTIZE_DITHER=off"<br>
>>> FORMATOPTION "QUANTIZE_COLORS=256"<br>
>>> END<br>
>>><br>
>>> Which version of Mapserver are you using?<br>
>>><br>
>>> Best Regards,<br>
>>> Brent Fraser<br>
>>><br>
>>> On 7/24/2013 7:37 AM, Robert R. Raiz wrote:<br>
>>>><br>
>>>> I just tried it out. Both:<br>
>>>><br>
>>>> WEB<br>
>>>> METADATA<br>
>>>> 'ows_title' 'Parcel Maps'<br>
>>>> 'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:900913
EPSG:4269 EPSG:2277'<br>
>>>> 'ows_enable_request' '*'<br>
>>>> 'ows_onlineresource' '<a
moz-do-not-send="true" href="http://www.geomoose.org"
target="_blank">http://www.geomoose.org</a>'<br>
>>>> END<br>
>>>> END<br>
>>>><br>
>>>> OUTPUTFORMAT<br>
>>>> NAME "png8"<br>
>>>> DRIVER AGG/PNG8<br>
>>>> MIMETYPE "image/png; mode=8bit"<br>
>>>> IMAGEMODE RGB<br>
>>>> EXTENSION "png"<br>
>>>> END<br>
>>>><br>
>>>> And:<br>
>>>><br>
>>>> OUTPUTFORMAT<br>
>>>> NAME "png32"<br>
>>>> DRIVER AGG/PNG<br>
>>>> MIMETYPE "image/png; mode=32bit"<br>
>>>> IMAGEMODE RGBA<br>
>>>> EXTENSION "png"<br>
>>>> END<br>
>>>><br>
>>>> 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.<br>
>>>> 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.<br>
>>>><br>
>>>><br>
>>><br>
>><br>
>><br>
>><br>
>> -- <br>
>> Raiz Roland Robert<br>
>><br>
>><br>
><br>
><br>
><br>
> -- <br>
> Raiz Roland Robert<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Geomoose-users mailing list<br>
> <a moz-do-not-send="true"
href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
> <a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/geomoose-users"
target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
></p>
</div>
</blockquote>
<br>
</body>
</html>