[ka-Map-users] setting up ka-map on OSX

Paul Spencer pspencer at dmsolutions.ca
Tue Sep 25 12:04:17 EDT 2007


Massimo,

it looks as if there is a syntax error in your config.php file  
somehow, specifically in the aszMapFiles array.  I can't see the  
problem immediately, however.  Anyone else see it?

Cheers

Paul

On 25-Sep-07, at 8:12 AM, massimo di stefano wrote:

> Hi,
>
> this is my first approach to ka-map,
> (please apologize me for the newbie question)
>
> i'm on a mac OsX
> as php, mapserver and  phpmapscript ( i'm using the binaries  
> package at : http://www.kyngchaos.com )
> ka-map downloaded from cvs
>
> following the ka-map wiki instruction i downloaded the data :
> cloud.tif , countries_simpl.shp ...
>
> i copied the ka-map folder in :
>
> /Users/epifanio/Sites/ka-map/
>
> then i put the data folder in :
>
> /Users/epifanio/Sites/ka-map/htdocs/data/
>
> i created a directory "tmp" with read + write permisions in :
>
> /Users/epifanio/Sites/ka-map/htdocs/tmp/
>
> then i modified the global.map file to load my data :
> i tested it using shp2image :
>
> /usr/local/mapserver/bin/shp2img -m /Users/epifanio/Sites/ka-map/ 
> htdocs/global.map -o test.png
>
> to set-up ka-map i modified
> /Users/epifanio/Sites/ka-map/include/config.php
>
> i modified this line :
>
>
> 49:  $szPHPMapScriptModule = 'php_mapscript.'.PHP_SHLIB_SUFFIX;
> 50:  $szPHPGDModule = 'php_gd.'.PHP_SHLIB_SUFFIX;
>
>
> i added :
>
> 118:  $aszMapFiles = array(
> 119:  	 "weather"     => array( "Global Weather",
> 120:                               "/Users/epifanio/Sites/ka-map/ 
> htdocs/global.map",
> 121:                               array( 100000000, 50000000,  
> 15000000 ),
> 122:                               "PNG")
> 123:  );
>
>
> obviously i'm missing something in it beacouse when i try to load  
> the link :
>
> http://10.37.129.3/~epifanio/ka-map/htdocs/
>
> but it do not load the map-file,
> this is the apache log :
>
>
> computer-di-epifanio:~ epifanio$ tail /private/var/log/httpd/error_log
> [Mon Sep 24 00:42:46 2007] [error] [client 10.37.129.3] File does  
> not exist: /Users/epifanio/Sites/ka-map/htdocs/tools/kaExplorer/ 
> images/icon_set_explorer/tool_query_1.png
> [Mon Sep 24 00:42:46 2007] [error] PHP Notice:  Undefined index:   
> gmap in /Users/epifanio/Sites/ka-map/include/config.php on line 171
> [Mon Sep 24 00:42:46 2007] [error] PHP Notice:  Undefined index:   
> gmap in /Users/epifanio/Sites/ka-map/include/config.php on line 172
> [Mon Sep 24 00:42:46 2007] [error] PHP Notice:  Undefined index:   
> gmap in /Users/epifanio/Sites/ka-map/include/config.php on line 173
> [Mon Sep 24 00:42:46 2007] [error] PHP Notice:  Undefined index:   
> gmap in /Users/epifanio/Sites/ka-map/include/config.php on line 174
> [Mon Sep 24 00:42:47 2007] [error] PHP Notice:  Undefined index:   
> path in /Users/epifanio/Sites/ka-map/htdocs/init.php on line 124
> [Mon Sep 24 00:42:47 2007] [error] PHP Notice:  Undefined index:   
> scales in /Users/epifanio/Sites/ka-map/htdocs/init.php on line 125
> [Mon Sep 24 00:42:47 2007] [error] PHP Warning:  implode() [<a  
> href='function.implode'>function.implode</a>]: Bad arguments. in / 
> Users/epifanio/Sites/ka-map/htdocs/init.php on line 125
> [Mon Sep 24 00:42:47 2007] [error] PHP Warning:  Invalid argument  
> supplied for foreach() in /Users/epifanio/Sites/ka-map/htdocs/ 
> init.php on line 151
> [Mon Sep 24 00:42:47 2007] [error] PHP Notice:  Undefined index:   
> title in /Users/epifanio/Sites/ka-map/htdocs/init.php on line 240
>
>
>
>
> thanks for any suggestion on how to set-up the file config.php :-)
>
>
> regards,
> Massimo.
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                          pspencer at dmsolutions.ca    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+







More information about the ka-Map-users mailing list