I think you forgot to change <br> $szMap = 'gmap';<br><br>to<br>$szMap = 'weather';<br>in config.php just below the point where you defined $aszMapFiles <br><br><div><span class="gmail_quote">On 9/25/07, <b class="gmail_sendername">
massimo di stefano</b> <<a href="mailto:massimodisasha@yahoo.it">massimodisasha@yahoo.it</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div style="margin: 0px;">Hi,</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">this is my first approach to ka-map,</div><div style="margin: 0px;">(please apologize me for the newbie question)
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">i'm on a mac OsX </div><div style="margin: 0px;">as php, mapserver and phpmapscript ( i'm using the binaries package at : <a href="http://www.kyngchaos.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
<font color="#002ce2">http://www.kyngchaos.com</font></a> )</div><div style="margin: 0px;">ka-map downloaded from cvs</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">following the ka-map wiki instruction i downloaded the data :
</div><div style="margin: 0px;">cloud.tif , <font face="Lucida Grande">countries_simpl.shp ...</font></div><div style="margin: 0px; min-height: 15px;"><br></div><div style="margin: 0px;"><font face="Lucida Grande">i copied the ka-map folder in :
</font></div><div style="margin: 0px; min-height: 15px;"><br></div><div style="margin: 0px;">/Users/epifanio/Sites/ka-map/</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">then i put the data folder in :
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">/Users/epifanio/Sites/ka-map/htdocs/data/</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">i created a directory "tmp" with read + write permisions in :
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">/Users/epifanio/Sites/ka-map/htdocs/tmp/</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">then i modified the
global.map file to load my data :</div><div style="margin: 0px;">i tested it using shp2image :</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">/usr/local/mapserver/bin/shp2img -m /Users/epifanio/Sites/ka-map/htdocs/global.map -o
test.png</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">to set-up ka-map i modified</div><div style="margin: 0px;">/Users/epifanio/Sites/ka-map/include/config.php</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">i modified this line : </div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">49: $szPHPMapScriptModule = 'php_mapscript.'.PHP_SHLIB_SUFFIX;
</div><div style="margin: 0px;">50: $szPHPGDModule = 'php_gd.'.PHP_SHLIB_SUFFIX;</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">
i added :</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">118: $aszMapFiles = array(</div><div style="margin: 0px;">119: <span style="white-space: pre;">        </span> "weather" => array( "Global Weather",
</div><div style="margin: 0px;">120: "/Users/epifanio/Sites/ka-map/htdocs/global.map",</div><div style="margin: 0px;">121: array( 100000000, 50000000, 15000000 ),
</div><div style="margin: 0px;">122: "PNG")</div><div style="margin: 0px;">123: );</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">obviously i'm missing something in it beacouse when i try to load the link :</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;"><a href="http://10.37.129.3/%7Eepifanio/ka-map/htdocs/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://10.37.129.3/~epifanio/ka-map/htdocs/</a></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">but it do not load the map-file, </div><div style="margin: 0px;">this is the apache log :
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">computer-di-epifanio:~ epifanio$ tail /private/var/log/httpd/error_log</div><div style="margin: 0px;">
[Mon Sep 24 00:42:46 2007] [error] [client <a href="http://10.37.129.3" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.37.129.3</a>] File does not exist: /Users/epifanio/Sites/ka-map/htdocs/tools/kaExplorer/images/icon_set_explorer/tool_query_1.png
</div><div style="margin: 0px;">[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</div><div style="margin: 0px;">[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
</div><div style="margin: 0px;">[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</div><div style="margin: 0px;">[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
</div><div style="margin: 0px;">[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</div><div style="margin: 0px;">[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
</div><div style="margin: 0px;">[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
</div><div style="margin: 0px;">[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</div><div style="margin: 0px;">[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
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;"><br></div>
<div style="margin: 0px;">thanks for any suggestion on how to set-up the file config.php :-)</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">
regards,</div><span class="sg"><div style="margin: 0px;">Massimo.</div><div style="margin: 0px;"><br></div></span></div><br>_______________________________________________<br>ka-Map-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ka-Map-users@lists.maptools.org">
ka-Map-users@lists.maptools.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br><br></blockquote></div><br>