[ka-Map-users] Ka-map on Debian etch - map not loading - help
needed.
jaisuvyas at gmail.com
jaisuvyas at gmail.com
Sat May 17 00:58:06 EDT 2008
Hi,
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 :-
--------------------------------------------------
Warning: [MapServer Error]: msEvalRegex(): String (G) failed expression
test. in /var/www/ka-map-1.0-20070205/htdocs/init.php on line 124
Warning: Failed to open map file G in
/var/www/ka-map-1.0-20070205/htdocs/init.php on line 124
Warning: implode() [function.implode]: Bad arguments. in
/var/www/ka-map-1.0-20070205/htdocs/init.php on line 125
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
--------------------------------------------------
http://localhost/ka-map/tile.php is showing the same error, which it shown
before.
--------------------------------------------------
When I issued the following command in console, it returns as follows:-
--------------------------------------------------
user at localhost:~$ php /var/www/ka-map-1.0-20070205/htdocs/precache.php -f
http://localhost/ka-map/tile.php
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
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
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
Warning: Invalid argument supplied for foreach() in
/var/www/ka-map-1.0-20070205/htdocs/precache.php on line 82
user at localhost:~$
--------------------------------------------------
Where I did a mistake?
2008/5/17 Lorenzo Becchi <lorenzo at ominiverdi.com>:
> ----------------------------------------
> $aszMapFiles = array(
> "weather" => array( "Global Weather",
>
> "/var/www/ka-map-1.0-20070205/htdocs/global.map",
> array( 100000000, 50000000, 15000000 ),
> "PNG")
> );
> -----------------------------------------
>
> probably as
> ----------------------------------------
>
> $aszMapFiles = array (
> 'title' => 'Global Weather',
> 'path' => '/var/www/ka-map-1.0-20070205/htdocs/global.map',
> 'scales' => array( 100000000, 50000000, 15000000 ),
> 'format' =>'PNG'
> );
>
> -----------------------------------------
>
>
> am I wrong?
>
>
> Lorenzo
>
>
> jaisuvyas at gmail.com wrote:
>
>> Hai..,
>> 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:-
>>
>> I copied the unzipped ka-map-1.0-20070205 folder to my /var/www/ folder.
>> Then put all the contents of freegis_worlddata-0.1_simpl.tar.gz inside
>> /var/www/ka-map-1.0-20070205/htdocs/data/ folder.
>> Created a folder /var/www/ka-map-1.0-20070205/htdocs/tmp/ too.
>> Set-up aliases in file /etc/apache2/sites-available/default as follows:-
>> -----------------------------------------------------------
>> Alias /ka-map/ "/var/www/ka-map-1.0-20070205/htdocs/"
>> <Directory "/var/www/ka-map-1.0-20070205/htdocs/">
>> Options Indexes
>> AllowOverride None
>> Order allow,deny
>> Allow from all
>> </Directory>
>> -----------------------------------------------------------
>> Changed settings in files as shown below:-
>> Settings in my /var/www/ka-map-1.0-20070205/htdocs/global.map:-
>> -----------------------------------------------------------
>> WEB
>> IMAGEPATH "/var/www/ka-map-1.0-20070205/htdocs/tmp"
>> IMAGEURL "/ka-map/tmp/"
>> END
>> -----------------------------------------------------------
>> In my config.php:-
>> -----------------------------------------------------------
>> $szPHPMapScriptModule = 'php_mapscript.'.PHP_SHLIB_SUFFIX;
>> $szPHPGDModule = 'gd.'.PHP_SHLIB_SUFFIX;
>> -----------------------------------------------------------
>> $aszMapFiles = array(
>> "weather" => array( "Global Weather",
>>
>> "/var/www/ka-map-1.0-20070205/htdocs/global.map",
>> array( 100000000, 50000000, 15000000 ),
>> "PNG")
>> );
>> -----------------------------------------------------------
>> Nothing else I have changed. But the Ka explorer window is just showing a
>> message:-
>> -----------------------------------------------------------
>> "The application is loading.
>> Please wait a moment... "
>> -----------------------------------------------------------
>> But the map is not loading.
>>
>> Then I tried with the script --> http://localhost/ka-map/init.php then it
>> returns an error message like this:-
>> -----------------------------------------------------------
>> Warning: implode() [function.implode]: Bad arguments. in
>> /var/www/ka-map-1.0-20070205/htdocs/init.php on line 125
>>
>> Warning: Invalid argument supplied for foreach() in
>> /var/www/ka-map-1.0-20070205/htdocs/init.php on line 151
>> /*init*/aszScales=new Array('');var map = new
>> _map({name:'weather',title:'',currentScale:
>> 0,units:3,resolution:72,version:'',scales:aszScales});map.setDefaultExtents(-1,-1,-1,-1);map.setBackgroundColor('rgb(255,255,255)');map.resolution
>> = 72;this.addMap( map );this.tileWidth=256;this.tileHeight=256;this.server =
>> 'http://localhost/ka-map/';this.tileURL<http://localhost/ka-map/%27;this.tileURL><
>> http://localhost/ka-map/%27;this.tileURL> =
>> 'tile.php';this.selectMap('gmap');
>> -----------------------------------------------------------
>> The script --> http://localhost/ka-map/tile.php returns an error
>> message:-
>> -----------------------------------------------------------
>> 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
>> -----------------------------------------------------------
>> But, when issuing this command:-
>> -----------------------------------------------------------
>> user at localhost:~$ shp2img -m
>> /var/www/ka-map-1.0-20070205/htdocs/global.map -o test.png
>> -----------------------------------------------------------
>> 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'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.
>>
>> --
>> (`'·.¸(`'·.¸ ¸.·'´)¸.·'´)
>> «´¨`·*Jaisen.*..´¨`»
>> (¸.·'´(¸.·'´ `'·.¸)`'·.¸)
>> ¸.·´
>> ( `·.¸
>> `·.¸ )
>> ¸.·)´
>> (.·´
>> ( `v´ )
>> `v´
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>
>>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
--
(`'·.¸(`'·.¸ ¸.·'´) ¸.·'´)
«´¨`·*Jaisen.*..´¨`»
(¸.·'´(¸.·'´ `'·.¸)`'·.¸)
¸.·´
( `·.¸
`·.¸ )
¸.·)´
(.·´
( `v´ )
`v´
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20080517/ebb8c7d9/attachment-0001.html
More information about the ka-Map-users
mailing list