<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The line you are referring to is (around) line 151 in print_util.php:<br>
    <br>
    <span style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      11px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: -webkit-auto; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); display: inline !important;
      float: none; "><span class="Apple-converted-space"> </span></span><span
      class="c" style="color: rgb(153, 153, 136); font-style: italic;
      font-family: monospace; font-size: 11px; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; ">//LK To allow use of AGG in
      onscreen and set to GD for print</span><br>
    <span class="nv" style="color: rgb(0, 128, 128); font-family:
      monospace; font-size: 11px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; ">$url</span><span style="color:
      rgb(0, 0, 0); font-family: monospace; font-size: 11px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: 2; text-align: -webkit-auto;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none; "> </span><span
      class="o" style="font-weight: bold; color: rgb(0, 0, 0);
      font-family: monospace; font-size: 11px; font-style: normal;
      font-variant: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; ">=</span><span style="color:
      rgb(0, 0, 0); font-family: monospace; font-size: 11px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: 2; text-align: -webkit-auto;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none; "> </span><span
      class="nv" style="color: rgb(0, 128, 128); font-family: monospace;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; ">$url</span><span style="color:
      rgb(0, 0, 0); font-family: monospace; font-size: 11px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: 2; text-align: -webkit-auto;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none; "> </span><span
      class="o" style="font-weight: bold; color: rgb(0, 0, 0);
      font-family: monospace; font-size: 11px; font-style: normal;
      font-variant: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; ">.</span><span style="color:
      rgb(0, 0, 0); font-family: monospace; font-size: 11px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: 2; text-align: -webkit-auto;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none; "> </span><span
      class="s1" style="color: rgb(187, 136, 68); font-family:
      monospace; font-size: 11px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; ">'&amp;map_IMAGETYPE=print'</span><span
      class="p" style="color: rgb(0, 0, 0); font-family: monospace;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; ">;</span><br>
    <br>
    I'm not sure I'd call it a bug, but it is an un-documented feature. 
    It expects something like<br>
    <br>
    <pre style="overflow-x: auto; overflow-y: auto; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); line-height: 1.2em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(198, 201, 203); border-right-color: rgb(198, 201, 203); border-bottom-color: rgb(198, 201, 203); border-left-color: rgb(198, 201, 203); border-image: initial; font-size: 1.2em; margin-top: 1.5em; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; -webkit-box-shadow: rgb(216, 216, 216) 1px 1px 1px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-w
idth: 0px; "><span class="k" style="color: rgb(0, 112, 32); font-weight: bold; ">OUTPUTFORMAT</span>
  <span class="k" style="color: rgb(0, 112, 32); font-weight: bold; ">NAME</span> <span class="s" style="color: rgb(64, 112, 160); ">"print"</span>
  <span class="k" style="color: rgb(0, 112, 32); font-weight: bold; ">DRIVER</span> <span class="nb" style="color: rgb(0, 112, 32); ">GD</span><span class="o" style="color: rgb(102, 102, 102); ">/</span><span class="nb" style="color: rgb(0, 112, 32); ">GIF</span>
  <span class="k" style="color: rgb(0, 112, 32); font-weight: bold; ">MIMETYPE</span> <span class="s" style="color: rgb(64, 112, 160); ">"image/gif"</span>
  <span class="k" style="color: rgb(0, 112, 32); font-weight: bold; ">IMAGEMODE</span> <span class="nb" style="color: rgb(0, 112, 32); ">PC256</span>
  <span class="k" style="color: rgb(0, 112, 32); font-weight: bold; ">EXTENSION</span> <span class="s" style="color: rgb(64, 112, 160); ">"gif"</span>
<span class="k" style="color: rgb(0, 112, 32); font-weight: bold; ">END</span></pre>
    to be in your geomoose_globals.map<br>
    <br>
    <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
    <br>
    On 5/12/2012 4:44 PM, Radoslav Melicher wrote:
    <blockquote
      cite="mid:15363225.23.1336862641011.JavaMail.root@kolektory.cz"
      type="cite">
      <pre wrap="">I am using geomoose 2.4 and mapserver 6.0.2 on ubuntu 10.04... 

Thx

Best Regards 

Radoslav Melicher

----- Original Message -----
From: Brent Fraser <a class="moz-txt-link-rfc2396E" href="mailto:bfraser@geoanalytic.com">&lt;bfraser@geoanalytic.com&gt;</a>
To: Radoslav Melicher <a class="moz-txt-link-rfc2396E" href="mailto:melicherr@kolektory.cz">&lt;melicherr@kolektory.cz&gt;</a>
Sent: Sat, 12 May 2012 15:13:42 +0200 (CEST)
Subject: Re: printing in geomoose

Which version of GeoMoose are you using?  Which version of Mapserver?

And the mailing list has been changed to a new server :  GeoMOOSE Users 
List <a class="moz-txt-link-rfc2396E" href="mailto:geomoose-users@lists.osgeo.org">&lt;geomoose-users@lists.osgeo.org&gt;</a>

Best Regards,
Brent Fraser


On 5/11/2012 8:21 AM, Radoslav Melicher wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi, Brent.

Sorry, for making a stupid mistake. I changed that when I realize that the originally used server went down. Now, I can see the layer when I select it, but when printing, it throws errors mentioned before.
I tried to change the print_util.php file (cannot remmeber line) where there is IMAGETYPE (there's only one I think) and changed print for something else, i. e. sprint, and then the error messages changed acoording to change. But now I don't know why is the error occuring, because I haven't changed print_util.php before. And when I tried to comment that line with IMAGETYPE=print in print_util.php it throws exactly same errors as I experience when trying to print layers from geoserver. You can see them here:

<a class="moz-txt-link-freetext" href="http://osgeo-org.1560.n6.nabble.com/printing-in-geomoose-td4684481.html">http://osgeo-org.1560.n6.nabble.com/printing-in-geomoose-td4684481.html</a>


In that time I thought there is problem in comunication between geomoose and geoserver, but now, when I commented that line out, it is the same with the mapserver. So, maybe I just need to solve this problem and I will be at good point.
Thanks very much indeed for your help

Best Regards,

Radoslav Melicher



----- Original Message -----
From: "Brent Fraser"<a class="moz-txt-link-rfc2396E" href="mailto:bfraser@geoanalytic.com">&lt;bfraser@geoanalytic.com&gt;</a>
To: "Radoslav Melicher"<a class="moz-txt-link-rfc2396E" href="mailto:melicherr@kolektory.cz">&lt;melicherr@kolektory.cz&gt;</a>
Sent: Thursday, May 10, 2012 4:59:55 PM
Subject: Re: printing in geomoose

A likely cause is that the Tiles At Home () server is no longer
available.  I now use MapQuest's OSM tiles
(<a class="moz-txt-link-freetext" href="http://wiki.openstreetmap.org/wiki/MapQuest">http://wiki.openstreetmap.org/wiki/MapQuest</a>)

So in your XML file, replace

<a class="moz-txt-link-freetext" href="http://tah.openstreetmap.org/Tiles/tile/$">http://tah.openstreetmap.org/Tiles/tile/$</a>{z}/${x}/${y}.png

with:

<a class="moz-txt-link-freetext" href="http://otile1.mqcdn.com/tiles/1.0.0/osm/$">http://otile1.mqcdn.com/tiles/1.0.0/osm/$</a>{z}/${x}/${y}.jpg



Best Regards,
Brent Fraser


On 5/10/2012 6:45 AM, Radoslav Melicher wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hi, Brent.

Excuse me for disturbing you, but I am unable to write a new topic to geomoose users forum.
Couple of months ago, you sent me some files to use for printing the OSM tiles. Many thanks again. Since that time I was coping another projects and stuff. Now I got back to it. As you, probably, remember I had a problem with printing in geomoose using geoserver. It still is there, but now I tried a new approach, I set up mapserver and make it work. It looks like it is okey now.
But I still have problem with printing in geomoose, even using only the attached files server through mapserver.
In ms_error.txt on my server I have errors saying:

[Thu May 10 14:20:08 2012].129895 msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `print'.
[Thu May 10 14:20:08 2012].367570 msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `print'.

Each time I try to print OSM_TAH.map there are these two lines again and again and I can see only blank PDF, jpeg or html. I don't know why there are 2 same errors. And I cannot figure out why there is IMAGETYPE 'print'. I tried to use firebug, but for printing it's useless, there is nothing.
I have also tried this manual <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu">http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu</a>. It throws the same errors each time I try to print the layer and the PDF, jpeg and html files are all blank. I can see these layers when I turn them on in geomoose, but when I print them these errors occur.
And I have another (probably) stupid question. When I am using anyone of these two layers and I am moving the view or zoom level, they are acting weird, because when I zoom, usually I can see just a piece of zoomed area, or when I move the map to whichever side it usually return back where it was before moving or move  in the other direction...

Excuse me once more, I know you all have a lot of work. If it is possible, can you at least help me to be able to write a new topic in the geomoose users forum?

Many many thanks

Best Regards

Radoslav Melicher



----- Original Message -----
From: "Brent Fraser"<a class="moz-txt-link-rfc2396E" href="mailto:bfraser@geoanalytic.com">&lt;bfraser@geoanalytic.com&gt;</a>
To: <a class="moz-txt-link-abbreviated" href="mailto:melicherr@kolektory.cz">melicherr@kolektory.cz</a>
Sent: Monday, December 19, 2011 4:58:16 PM
Subject: Re: printing in geomoose

see attached files...

Best Regards,
Brent Fraser


On 12/19/2011 8:55 AM, <a class="moz-txt-link-abbreviated" href="mailto:melicherr@kolektory.cz">melicherr@kolektory.cz</a> wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Hi there. You replied to my post about problems with printing. I have hardly ever used a map file, so what you are suggesting here (<a class="moz-txt-link-freetext" href="http://www.osgeo.org/pipermail/geomoose-users/2010-July/002435.html">http://www.osgeo.org/pipermail/geomoose-users/2010-July/002435.html</a>) is a little bit problematic for me. I tried to write a map file with layer of openstreetmap tiles. I wanted to use it as a base layer with possibility to print. But i wasn't successful.
Can you send me a map file or some template how it looks like for this purpose?
thank you very much

</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">
</pre>
      </blockquote>
      <pre wrap="">


</pre>
    </blockquote>
  </body>
</html>