[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 13:27:55 EDT 2006


Jose, don't give up :-)

You just need to start with a simpler mapping framework than kamap 
(which happens to be one of the most sophisticated ones)

I started teaching a class this term on web mapping with open source, 
and we use Tyler Mitchell's book and Bill Kropla's. I would recommend 
you buy the Kropla (Beginning Mapserver) book and work through chapter 
FOUR. Once you've made it this far you will have all of the elements 
needed to implement a kamap version. You can download his sourcecode 
from the publisher's webpage.

I hope Tyler will make the code from his book available too ;-)

You need to make sure that you understand what *coordinate system* you 
are in, in order to make the reference map work!

Hang in there,
Percy

José Vilson de Mello de Farias wrote:
> Percy,
> 
> I was wondering if there were some easy way to do it, but I think there 
> is no such thing here :)
> 
> I created my code from the ka-map tutorial, but my keymap hadn't worked 
> because there were no information about it in the mapfile example.  I'm 
> really newbie in both Mapserver / Ka-Map; consequently, I had no idea I 
> would need to configure it .
> 
> Have a good day and thanks a lot for your help!
> 
> Vilson
> 
> percy wrote:
>> 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/
>>
>>
>>
> 
> 
> -- 
> *José Vilson de Mello de Farias*
> /Analista de Sistemas
> //SSE - Segurança Pública/
> 
> *DÍGITRO TECNOLOGIA*
> *E-mail:* vilson.farias at digitro.com.br 
> <mailto:vilson.farias at digitro.com.br%20>
> *Messenger: *vilsonfarias at hotmail.com 
> <mailto:vilson.farias at digitro.com.br%20>
> *Fone:* (0xx48) 3281-7314
> *Fax:* (0xx48) 3281-7000
> *Site:* www.digitro.com.br <http://www.digitro.com.br%20> 
> <http://www.digitro.com.br%20>

-- 
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