[ka-Map-users] Failing to draw()

James Tuthill techie at omlet.co.uk
Tue Jan 23 06:30:23 EST 2007


Hi,

I am just starting out with ka-map and php mapscript but can't work out 
what errors are causing my maps not to draw().

I have successfully installed a cgi version of the Maps that I want to 
use with ka-maps here: 

    http://www.omlet.co.uk/maptest/htdocs/index-vector.html

Then I setup ka-map here:

    http://www.omlet.co.uk/maptest/kamap/

Several things are missing such as country text, roads etc.  I have 
purchased the map and data from dmsolution.ca , so I am confident the 
syntax is correct.

When this failed to work, I thought I would play around with some simple 
php mapscript to see if I could isolate the program. I have noticed that 
the code silently failed at the draw() stage of php mapscript. I have 
checked both the apache and php logs and can't see any error messages. 

Here are the simple set of commands that I am using for my php mapscript 
scipt.

   // Create a map object
   $map_object=ms_newMapObj($map_path.$map_filename);

   // Render the map into an image object
   $map_img=$map_object->draw();

   // Save the map to an image file
   $map_img->saveImage($img_path.$img_filename);

The program fails are draw() - but there is no debug output.
Can anyone tell me how to start debugging this? Perhaps php and php 
mapscript aren't installed correctly?

Any help would be gratefully received,

Thanks,

James



More information about the ka-Map-users mailing list