[ka-Map-users] setting up ka-map on OSX
Johan Van de Wauw
johan.vandewauw at gmail.com
Wed Sep 26 03:20:47 EDT 2007
I think you forgot to change
$szMap = 'gmap';
to
$szMap = 'weather';
in config.php just below the point where you defined $aszMapFiles
On 9/25/07, massimo di stefano <massimodisasha at yahoo.it> 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/<http://10.37.129.3/%7Eepifanio/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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20070926/3bab1ec7/attachment.html
More information about the ka-Map-users
mailing list