[Geomoose-users] Print Error

Len Kne lkne at houstoneng.com
Mon Nov 29 09:48:46 EST 2010


I'll add on to this with a workaround I use.  Create two OUTPUTFORMATs (I do this in geomoose_globals.map), one uses AGG, the other GD.  The default is the AGG output so it looks nice on screen, but for printing, tell print_util.php to use the GD output by adding:

                $url = $url . '&map_IMAGETYPE=print';
$url = $url . '&mode=map';

Len

From: Brent Fraser [mailto:bfraser at geoanalytic.com]
Sent: Sunday, November 28, 2010 10:00 AM
To: Dante Fuster
Cc: geomoose-users at lists.sourceforge.net
Subject: Re: [Geomoose-users] Print Error

Dante,

  The problem is that the PHP functions Geomoose uses for creating the print image do not support transparent PNGs very well.

  The short answer is to change the PNG image type that mapserver is producing to:

    IMAGETYPE GD_PNG
    OUTPUTFORMAT
      NAME GD_PNG
      DRIVER "GD/PNG"
      MIMETYPE "image/png"
      IMAGEMODE RGB
      EXTENSION "png"
    END

But you'll lose all the great AGG rendering features of mapserver (antialiasing, etc).



Best Regards,

Brent Fraser

On 11/26/2010 2:31 PM, Dante Fuster wrote:
Hi

I have a problems with the print option, I use RedHat Enterprise 5, Geomoose 2.2 and FGS with postgresql 8.4.1 and postgis 1.3.2,
The configure the aplication is OK, Show maps, search, and change visibility, but when I use de Print option (html, image or pdf) the maps show in BLACK !!

Can you say me what happens?

Thanks for all

Dante Fuster






------------------------------------------------------------------------------

Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!

Tap into the largest installed PC base & get more eyes on your game by

optimizing for Intel(R) Graphics Technology. Get started today with the

Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.

http://p.sf.net/sfu/intelisp-dev2dev





_______________________________________________

Geomoose-users mailing list

Geomoose-users at lists.sourceforge.net<mailto:Geomoose-users at lists.sourceforge.net>

https://lists.sourceforge.net/lists/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20101129/91c839f2/attachment.html


More information about the Geomoose-users mailing list