Hi, I'm trying to ues Ka-map on mapserver in a mac osx 10.5.2 environment. My mapserver is up and running (i can use wms service). I've put ka-map in my /users/simo/sites dir, my mapfile is:<br>MAP<br> NAME maptry<br>
STATUS ON<br> EXTENT -180 -90 180 90<br> SIZE 600 600<br> UNITS dd<br> IMAGECOLOR 255 255 255<br> IMAGETYPE png<br> PROJECTION<br> "init=epsg:4326"<br> END<br> WEB<br> IMAGEPATH "/tmp/kacache/"<br>
IMAGEURL "/tmp/kacache/"<br> END<br> LAYER<br> NAME road<br> GROUP roads<br> TYPE LINE<br> DATA ../data/roads.shp<br> STATUS ON<br> PROJECTION<br> "init=epsg:4326"<br>
END<br> CLASS<br> NAME "roads"<br> END<br> END<br>END<br><br>and my config.php is:<br>$aszGMap = array (<br> 'title' => 'prova',<br> 'path' => '/users/simo/sites/mapfile/kamap.map',<br>
'scales' => array( 40000000, 25000000, 12000000, 7500000, 3000000, 1000000 ),<br> 'format' =>'PNG'<br> /* Sample authorized_users entry. See auth.php for more details:<br>
* ,'authorized_users' => array('popplace' => array('user1', 'user2'),<br> * 'park' => array('user1')<br> */<br>
);<br><br><br> $aszMapFiles = array( 'prova' => $aszGMap<br><br>/* Add more elements to this array to offer multiple mapfiles */<br><br>);<br><br>When I access to ka-map i can see the standard interface but no mapfile are loaded. I'm sure that the path is correct.<br>
I think the problem is in the php_gd, because in my mac I haven't found any php_gd.so files.<br>I've installed all frameworks from <a href="http://www.kyngchaos.com/">http://www.kyngchaos.com/</a> GD framework included. I've also installed the php-cgi 5.2 and used phpenable.app.<br>
But in my phpinfo, in the configure section, i read : '--with-gd=/Users/Shared/unix/gd' but in this folder I haven't any unix dir. All files are in /library/frameworks/gd.framework.<br>Can you help me?<br><br>
Thanks in advance.<br clear="all"><br>-- <br>Simone Dalmasso<br>