Hai.., <br>&nbsp;&nbsp;&nbsp; I am jaisen, a new user of ka-map. I was setting up ka-map on my Debian Etch box with the sample data. But problem is, map is not at all appearing. All I did is given below:-<br><br>I copied the unzipped ka-map-1.0-20070205 folder to my /var/www/ folder.<br>
Then put all the contents of freegis_worlddata-0.1_simpl.tar.gz inside /var/www/ka-map-1.0-20070205/htdocs/data/ folder.<br>Created a folder /var/www/ka-map-1.0-20070205/htdocs/tmp/ too.<br>Set-up aliases in file /etc/apache2/sites-available/default as follows:-<br>
-----------------------------------------------------------<br>Alias /ka-map/ &quot;/var/www/ka-map-1.0-20070205/htdocs/&quot;<br>&nbsp;&nbsp;&nbsp; &lt;Directory &quot;/var/www/ka-map-1.0-20070205/htdocs/&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Options Indexes<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AllowOverride None<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Order allow,deny<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Allow from all<br>&nbsp;&nbsp;&nbsp; &lt;/Directory&gt; <br>-----------------------------------------------------------<br>Changed settings in files as shown below:-<br>
Settings in my /var/www/ka-map-1.0-20070205/htdocs/global.map:-<br>-----------------------------------------------------------<br>&nbsp;WEB<br>&nbsp;&nbsp; IMAGEPATH &quot;/var/www/ka-map-1.0-20070205/htdocs/tmp&quot;<br>&nbsp;&nbsp; IMAGEURL &quot;/ka-map/tmp/&quot;<br>
&nbsp;END<br>-----------------------------------------------------------<br>In my config.php:-<br>-----------------------------------------------------------<br>$szPHPMapScriptModule = &#39;php_mapscript.&#39;.PHP_SHLIB_SUFFIX;<br>
$szPHPGDModule = &#39;gd.&#39;.PHP_SHLIB_SUFFIX;<br>-----------------------------------------------------------<br>$aszMapFiles = array(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;weather&quot;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; array( &quot;Global Weather&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;/var/www/ka-map-1.0-20070205/htdocs/global.map&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; array( 100000000, 50000000, 15000000 ),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;PNG&quot;)<br>);<br>-----------------------------------------------------------<br>Nothing else I have changed. But the Ka explorer window is just showing a message:- <br>
-----------------------------------------------------------<br>&quot;The application is loading.<br>Please wait a moment... &quot; <br>-----------------------------------------------------------<br>But the map is not loading. <br>
<br>Then I tried with the script --&gt; <a href="http://localhost/ka-map/init.php">http://localhost/ka-map/init.php</a> then it returns an error message like this:- <br>-----------------------------------------------------------<br>
Warning: implode() [function.implode]: Bad arguments. in /var/www/ka-map-1.0-20070205/htdocs/init.php on line 125<br><br>Warning: Invalid argument supplied for foreach() in /var/www/ka-map-1.0-20070205/htdocs/init.php on line 151<br>
/*init*/aszScales=new Array(&#39;&#39;);var map = new _map({name:&#39;weather&#39;,title:&#39;&#39;,currentScale: 0,units:3,resolution:72,version:&#39;&#39;,scales:aszScales});map.setDefaultExtents(-1,-1,-1,-1);map.setBackgroundColor(&#39;rgb(255,255,255)&#39;);map.resolution = 72;this.addMap( map );this.tileWidth=256;this.tileHeight=256;this.server = &#39;<a href="http://localhost/ka-map/&#39;;this.tileURL">http://localhost/ka-map/&#39;;this.tileURL</a> = &#39;tile.php&#39;;this.selectMap(&#39;gmap&#39;);<br>
-----------------------------------------------------------<br>The script --&gt; <a href="http://localhost/ka-map/tile.php">http://localhost/ka-map/tile.php</a> returns an error message:-<br>-----------------------------------------------------------<br>
Fatal error: [MapServer Error]: setExtent(): Given map extent is invalid. Check that it is in the form: minx, miny, maxx, maxy in /var/www/ka-map-1.0-20070205/htdocs/tile.php on line 239<br>-----------------------------------------------------------<br>
But, when issuing this command:-<br>-----------------------------------------------------------<br>user@localhost:~$ shp2img -m /var/www/ka-map-1.0-20070205/htdocs/global.map -o test.png<br>-----------------------------------------------------------<br>
It makes a test.png image of world with red boundary lines of world nations in /var/www/ka-map-1.0-20070205/htdocs/ folder. As I am new to these all, don&#39;t know, where to make changes. Please give me some guidelines, that what else should I do to get the sample map in ka-explorer window. <br clear="all">
<br>-- <br>(`&#39;·.¸(`&#39;·.¸ ¸.·&#39;´)¸.·&#39;´)<br>«´¨`·*Jaisen.*..´¨`»<br>(¸.·&#39;´(¸.·&#39;´ `&#39;·.¸)`&#39;·.¸)<br>¸.·´<br>( `·.¸<br>`·.¸ )<br>¸.·)´<br>(.·´<br>( `v´ )<br>&nbsp; `v´