[Chameleon] PrintProduction: visible coordinates, empty map
Julien-Samuel Lacroix
jlacroix at mapgears.com
Fri Jan 18 13:23:26 EST 2008
Hi,
If you got no error in any logfile and you think your PHP/MapScript
installation is correct you should probably try your session mapfile
with a simple php script.
To get your session mapfile, search in the directory where the session
are stored for your SID. In there you will have mapfiles. Take the last
one and try it with the following code.
Julien
<?php
// define variables
define( "MAPFILE", "gmap75.map" );
if (!extension_loaded("MapScript"))
{
dl("php_mapscript_40." . PHP_SHLIB_SUFFIX);
}
// open map
$oMap = ms_newMapObj( MAPFILE, dirname( MAPFILE ) );
$oMap->selectoutputformat("png");
// draw map
$oImage = $oMap->draw();
// set header
header("Content-type: image/png");
// output map
$url = $oImage->saveImage("");
?>
Attila Berényi wrote:
> Hi there,
>
> I've the same problem described here
> (http://lists.maptools.org/pipermail/chameleon/2006-May/004018.html),
> but recompiling PHP with the newest GD didn't solve the problem.
> Any other idea?
>
> Thanks in advance,
>
> Attila
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
More information about the Chameleon
mailing list