[ka-Map-users] Newbie question : Where should I look for, errors
when my keymap doens't work?
percy
percyd at pdx.edu
Tue Oct 24 12:54:17 EDT 2006
Jose, I always test my map file with a simple chunck of php-mapscript to
just make sure that the map, reference image, and legend are being
generated correctly.
//here's the code:
<?php
// set error reporting
ini_set("display_errors", 1);
ini_set("display_startup_errors", 1);
error_reporting (E_ALL);
if (!extension_loaded("MapScript")) dl("php_mapscript.so");
$map_file="./oregon_geotech_props6.map";
$map1 = ms_newMapObj($map_file);
$image1=$map1->draw();
$image2=$map1->drawreferencemap();
$image3=$map1->drawlegend();
$image_url1=$image1->saveWebImage();
$image_url2=$image2->saveWebImage();
$image_url3=$image3->saveWebImage();
?>
<HTML>
<HEAD>
<TITLE>Test map elements</TITLE>
</HEAD>
<BODY>
<?php
echo "map: <br><img SRC=\"$image_url1\"><br>";
echo "refmap: <br><img SRC=\"$image_url2\"<br>";
echo "legend: <br><img SRC=\"$image_url3\"<br>";
?>
</BODY>
</html>
//end code
Date: Mon, 23 Oct 2006 18:24:05 -0300
From: Jos? Vilson de Mello de Farias <vilson.farias at digitro.com.br>
Subject: [ka-Map-users] Newbie question : Where should I look for
errors when my keymap doens't work?
To: ka-map-users at lists.maptools.org
Message-ID: <453D32F5.2050005 at digitro.com.br>
Content-Type: text/plain; charset="iso-8859-1"
Greetings,
I've done the first example from "Build AJAX-Based Web Maps Using
ka-Map" and it works partially. Although my map is working perfectly,
the keymaps isn't showed.
I'm still a newbie in Ka-Map, therefore I have no ideia about the
reasons or where I should look for errors. What can I do to make it work?
Best regards,
-- *José Vilson de Mello de Farias* /Analista de Sistemas //SSE -
Segurança Pública/
--
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373
More information about the ka-Map-users
mailing list