[Chameleon] PrintProduction: visible coordinates, empty map

Attila Berényi aberenyi at burken.hu
Tue Jan 22 02:40:08 EST 2008


Hi,

I've done some investigation, and I realized that the widget creates the 
image of the map view (it is in the tmp folder), but it seems it can not 
merge the frame, title and coordintes with the map view. According to 
the previously posted thread I think this is a possible bug in GD or PHP 
but I don't know how to solve...hopefully yet :)

Anyway thanks,

Attila

Julien-Samuel Lacroix írta:
> Hi,
>
> Then it's probaly something with your installation. If you don't have 
> any error message appearing and the map works fine outside of the 
> widget it means you'll need to do some debugging. In the widget file 
> preview.php, You can place a bunch of echo in hte function render 
> image to see if it crash somewhere maybe...
>
> Julien
>
> Attila Berényi wrote:
>> Hi,
>>
>> Thanks for the fast answer. I've tried this, and it works perfectly 
>> (draws the map), so I'm totally confused, because the widget doesn't 
>> display the map content at all...
>>
>> Any other idea?
>>
>> Thanks,
>>
>> Attila
>>
>> Julien-Samuel Lacroix írta:
>>
>>> 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
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20080122/e04fbf73/attachment.html


More information about the Chameleon mailing list