simple Example script ?

85 views
Skip to first unread message

DIL LAB

unread,
Jan 15, 2010, 5:35:04 AM1/15/10
to Thematic Mapping API
i tried this but not working

<?php
include ('tme\TME_MySQL_DataConnector.php');
include ('tme\TME_Engine.php');

$dataConnector = new DataConnector();
$dataStore = $dataConnector->getDataStore(68, 2005, 0);

$parameters = array( 'mapType' => 'choropleth','indicator' =>
68,'year' => 2005,'classification' => 'equal' );

$map = new ThematicMap($dataStore, $parameters);
$file = $map->getKML();


?>

Message displayed in browser :


Warning: imagepng() [function.imagepng]: Unable to open 'tmp/files/
legend1263551295.png' for writing: No such file or directory in C:
\xampp\htdocs\tme\TME_Engine.php on line 892

Warning: imagecreatefrompng(files/logo.png)
[function.imagecreatefrompng]: failed to open stream: No such file or
directory in C:\xampp\htdocs\tme\TME_Engine.php on line 977

Warning: imagecopy() expects parameter 2 to be resource, boolean given
in C:\xampp\htdocs\tme\TME_Engine.php on line 978

Warning: imagepng() [function.imagepng]: Unable to open 'tmp/files/
logo1263551295.png' for writing: No such file or directory in C:\xampp
\htdocs\tme\TME_Engine.php on line 996

--------------
i have not seen a simple example link or script anywhere in website.
is there or not. can any one tell me a smooth working example. i
guesss some image files are missed in bundled api.

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

Bjorn

unread,
Jan 16, 2010, 6:16:45 PM1/16/10
to Thematic Mapping API

Hi,

Your question is about the Thematic Mapping Engine, and this is the
forum for the Thematic Mapping API, which is a different application.
Are you sure that you have write access to your disk? It seems that
TME are not able to store images on disk.

TME forum: http://groups.google.com/group/thematic-mapping-engine

Bjørn

Reply all
Reply to author
Forward
0 new messages