I did it with a fresh config.php. But the problem remains as such. I am attaching my config.php amd global.map herewith. Please point out the problem in it.. <br><br><div class="gmail_quote">2008/5/17 Lorenzo Becchi <<a href="mailto:lorenzo@ominiverdi.com">lorenzo@ominiverdi.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">it would be better you start from scratch with the config.php<br>
you have to pay attention not to change the syntax but only the content...<br>
<br>
<br>
<a href="mailto:jaisuvyas@gmail.com" target="_blank">jaisuvyas@gmail.com</a> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hi,<br>
Thanks for your prompt response. Yes, I changed those lines as per your suggestion. But still map is not loading... Now the htdocs/init.php shows error message in a different way. It show as follows :-<br>
--------------------------------------------------<br>
Warning: [MapServer Error]: msEvalRegex(): String (G) failed expression test. in /var/www/ka-map-1.0-20070205/htdocs/init.php on line 124<br>
<br>
Warning: Failed to open map file G in /var/www/ka-map-1.0-20070205/htdocs/init.php on line 124<br>
<br>
Warning: implode() [function.implode]: Bad arguments. in /var/www/ka-map-1.0-20070205/htdocs/init.php on line 125<br>
<br>
Fatal error: Call to a member function getMetaData() on a non-object in /var/www/ka-map-1.0-20070205/htdocs/init.php on line 130<br>
--------------------------------------------------<br>
<a href="http://localhost/ka-map/tile.php" target="_blank">http://localhost/ka-map/tile.php</a> is showing the same error, which it shown before.<br>
--------------------------------------------------<br>
When I issued the following command in console, it returns as follows:-<br>
--------------------------------------------------<br>
user@localhost:~$ php /var/www/ka-map-1.0-20070205/htdocs/precache.php -f <a href="http://localhost/ka-map/tile.php" target="_blank">http://localhost/ka-map/tile.php</a><br>
<br>
Warning: include(../include/config.php): failed to open stream: No such file or directory in /var/www/ka-map-1.0-20070205/htdocs/precache.php on line 44<br>
<br>
Warning: include(): Failed opening '../include/config.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/ka-map-1.0-20070205/htdocs/precache.php on line 44<br>
<br>
Warning: dl(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot open shared object file: No such file or directory in /var/www/ka-map-1.0-20070205/htdocs/precache.php on line 46<br>
<br>
Warning: Invalid argument supplied for foreach() in /var/www/ka-map-1.0-20070205/htdocs/precache.php on line 82<br>
user@localhost:~$<br>
--------------------------------------------------<br>
Where I did a mistake?<br>
<br>
<br></div>
2008/5/17 Lorenzo Becchi <<a href="mailto:lorenzo@ominiverdi.com" target="_blank">lorenzo@ominiverdi.com</a> <mailto:<a href="mailto:lorenzo@ominiverdi.com" target="_blank">lorenzo@ominiverdi.com</a>>>:<div class="Ih2E3d">
<br>
<br>
----------------------------------------<br>
$aszMapFiles = array(<br>
"weather" => array( "Global Weather",<br>
"/var/www/ka-map-1.0-20070205/htdocs/global.map",<br>
array( 100000000, 50000000, 15000000 ),<br>
"PNG")<br>
);<br>
-----------------------------------------<br>
<br>
probably as<br>
----------------------------------------<br>
<br>
$aszMapFiles = array (<br>
'title' => 'Global Weather',<br>
'path' => '/var/www/ka-map-1.0-20070205/htdocs/global.map',<br>
'scales' => array( 100000000, 50000000, 15000000 ),<br>
'format' =>'PNG'<br>
);<br>
<br>
-----------------------------------------<br>
<br>
<br>
am I wrong?<br>
<br>
<br>
Lorenzo<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
<a href="mailto:jaisuvyas@gmail.com" target="_blank">jaisuvyas@gmail.com</a> <mailto:<a href="mailto:jaisuvyas@gmail.com" target="_blank">jaisuvyas@gmail.com</a>> wrote:<br>
<br>
Hai..,<br>
I am jaisen, a new user of ka-map. I was setting up ka-map<br>
on my Debian Etch box with the sample data. But problem is,<br>
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<br>
/var/www/ folder.<br>
Then put all the contents of<br>
freegis_worlddata-0.1_simpl.tar.gz inside<br>
/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<br>
follows:-<br>
-----------------------------------------------------------<br>
Alias /ka-map/ "/var/www/ka-map-1.0-20070205/htdocs/"<br>
<Directory "/var/www/ka-map-1.0-20070205/htdocs/"><br>
Options Indexes<br>
AllowOverride None<br>
Order allow,deny<br>
Allow from all<br>
</Directory><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>
WEB<br>
IMAGEPATH "/var/www/ka-map-1.0-20070205/htdocs/tmp"<br>
IMAGEURL "/ka-map/tmp/"<br>
END<br>
-----------------------------------------------------------<br>
In my config.php:-<br>
-----------------------------------------------------------<br>
$szPHPMapScriptModule = 'php_mapscript.'.PHP_SHLIB_SUFFIX;<br>
$szPHPGDModule = 'gd.'.PHP_SHLIB_SUFFIX;<br>
-----------------------------------------------------------<br>
$aszMapFiles = array(<br>
"weather" => array( "Global Weather",<br>
"/var/www/ka-map-1.0-20070205/htdocs/global.map",<br>
array( 100000000, 50000000,<br>
15000000 ),<br>
"PNG")<br>
);<br>
-----------------------------------------------------------<br>
Nothing else I have changed. But the Ka explorer window is<br>
just showing a message:-<br>
-----------------------------------------------------------<br>
"The application is loading.<br>
Please wait a moment... "<br>
-----------------------------------------------------------<br>
But the map is not loading.<br>
<br>
Then I tried with the script --><br>
<a href="http://localhost/ka-map/init.php" target="_blank">http://localhost/ka-map/init.php</a> then it returns an error<br>
message like this:-<br>
-----------------------------------------------------------<br>
Warning: implode() [function.implode]: Bad arguments. in<br>
/var/www/ka-map-1.0-20070205/htdocs/init.php on line 125<br>
<br>
Warning: Invalid argument supplied for foreach() in<br>
/var/www/ka-map-1.0-20070205/htdocs/init.php on line 151<br>
/*init*/aszScales=new Array('');var map = new<br>
_map({name:'weather',title:'',currentScale:<br>
0,units:3,resolution:72,version:'',scales:aszScales});map.setDefaultExtents(-1,-1,-1,-1);map.setBackgroundColor('rgb(255,255,255)');map.resolution<br>
= 72;this.addMap( map<br>
);this.tileWidth=256;this.tileHeight=256;this.server =<br>
'<a href="http://localhost/ka-map/%27;this.tileURL" target="_blank">http://localhost/ka-map/';this.tileURL</a><br>
<<a href="http://localhost/ka-map/%27;this.tileURL" target="_blank">http://localhost/ka-map/%27;this.tileURL</a>><br>
<<a href="http://localhost/ka-map/%27;this.tileURL" target="_blank">http://localhost/ka-map/%27;this.tileURL</a>> =<br>
'tile.php';this.selectMap('gmap');<br>
<br>
-----------------------------------------------------------<br>
The script --> <a href="http://localhost/ka-map/tile.php" target="_blank">http://localhost/ka-map/tile.php</a> returns an<br>
error message:-<br>
-----------------------------------------------------------<br>
Fatal error: [MapServer Error]: setExtent(): Given map extent<br>
is invalid. Check that it is in the form: minx, miny, maxx,<br>
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<br>
/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<br>
world nations in /var/www/ka-map-1.0-20070205/htdocs/ folder.<br>
As I am new to these all, don't know, where to make changes.<br>
Please give me some guidelines, that what else should I do to<br>
get the sample map in ka-explorer window.<br>
<br>
-- (`'·.¸(`'·.¸ ¸.·'´)¸.·'´)<br>
«´¨`·*Jaisen.*..´¨`»<br>
(¸.·'´(¸.·'´ `'·.¸)`'·.¸)<br>
¸.·´<br>
( `·.¸<br>
`·.¸ )<br>
¸.·)´<br>
(.·´<br>
( `v´ )<br>
`v´<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
ka-Map-users mailing list<br>
<a href="mailto:ka-Map-users@lists.maptools.org" target="_blank">ka-Map-users@lists.maptools.org</a><br></div></div>
<mailto:<a href="mailto:ka-Map-users@lists.maptools.org" target="_blank">ka-Map-users@lists.maptools.org</a>><div class="Ih2E3d"><br>
<a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
<br>
_______________________________________________<br>
ka-Map-users mailing list<br>
<a href="mailto:ka-Map-users@lists.maptools.org" target="_blank">ka-Map-users@lists.maptools.org</a><br></div>
<mailto:<a href="mailto:ka-Map-users@lists.maptools.org" target="_blank">ka-Map-users@lists.maptools.org</a>><div class="Ih2E3d"><br>
<a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
<br>
<br>
<br>
<br>
-- <br>
(`'·.¸(`'·.¸ ¸.·'´) ¸.·'´)<br>
«´¨`·*Jaisen.*..´¨`»<br>
(¸.·'´(¸.·'´ `'·.¸)`'·.¸)<br>
¸.·´<br>
( `·.¸<br>
`·.¸ )<br>
¸.·)´<br>
(.·´<br>
( `v´ )<br>
`v´ <br>
</div></blockquote><div><div></div><div class="Wj3C7c">
_______________________________________________<br>
ka-Map-users mailing list<br>
<a href="mailto:ka-Map-users@lists.maptools.org" target="_blank">ka-Map-users@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>(`'·.¸(`'·.¸ ¸.·'´) ¸.·'´)<br>«´¨`·*Jaisen.*..´¨`»<br>(¸.·'´(¸.·'´ `'·.¸)`'·.¸)<br>¸.·´<br>( `·.¸<br>`·.¸ )<br>¸.·)´<br>(.·´<br>
( `v´ )<br> `v´