<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">The other thing to keep in mind is at
      least for WMS layers, OpenLayers (and thus GeoMoose) does some
      "magic" in setting an output format if you don't specify one.<br>
      <br>
<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.noMagic">http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.noMagic</a><br>
      <br>
      On 2013/8/13 9:41 AM, Robert R. Raiz wrote:<br>
    </div>
    <blockquote
cite="mid:CAF=UrPnejH+Ukv3-43QwoOYaSLxd8HrxYakrg3-sRzvHq1KAdQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">For me it isn't, as I use a lot of tiff files,
        icons and images in general. Using the param in the mapbook, it
        overwrites the OUTPUTFORMAT in the map file (thus the error
        stated in the topic title);<br>
        After I removed this param, I can use one, more or zero
        OUTPUTFORMATS in the mapfile and it works quite well.<br>
        <br>
        Maybe it is useful when you only have to render vector data ?!
        it could render the features faster if it uses an 8bit
        value..I'm just thinking out loud, I could be talking non-sense.</div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Tue, Aug 13, 2013 at 5:19 PM, Eli
          Adam <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:eadam@co.lincoln.or.us" target="_blank">eadam@co.lincoln.or.us</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="im">
                <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>
              </div>
              <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>
              <span class="HOEnZb"><font color="#888888">
                </font></span>
              <p dir="ltr"><span class="HOEnZb"><font color="#888888">Eli</font></span></p>
              <div>
                <div class="h5"><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>
                </div>
              </div>
              <div class="im">
                > _______________________________________________<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>
                ></div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <b><i>Raiz Roland Robert</i></b><br>
        <br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Geomoose-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>