[mapserver-users] Ka-map on leopard

Simone Dalmasso simone.dalmasso at gmail.com
Wed Feb 13 16:15:27 EST 2008


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:
MAP
    NAME maptry
    STATUS ON
    EXTENT -180 -90 180 90
    SIZE 600 600
    UNITS dd
    IMAGECOLOR 255 255 255
    IMAGETYPE png
    PROJECTION
        "init=epsg:4326"
    END
    WEB
    IMAGEPATH "/tmp/kacache/"
    IMAGEURL "/tmp/kacache/"
    END
    LAYER
        NAME road
        GROUP roads
        TYPE LINE
        DATA ../data/roads.shp
        STATUS ON
        PROJECTION
            "init=epsg:4326"
        END
        CLASS
            NAME "roads"
        END
    END
END

and my config.php is:
$aszGMap = array (
         'title' => 'prova',
         'path' => '/users/simo/sites/mapfile/kamap.map',
         'scales' => array( 40000000, 25000000, 12000000, 7500000, 3000000,
1000000 ),
         'format' =>'PNG'
         /* Sample authorized_users entry. See auth.php for more details:
          * ,'authorized_users' => array('popplace' => array('user1',
'user2'),
          *                              'park'     => array('user1')
          */
 );


 $aszMapFiles = array( 'prova' => $aszGMap

/* Add more elements to this array to offer multiple mapfiles */

);

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.
I think the problem is in the php_gd, because in my mac I haven't found any
php_gd.so files.
I've installed all frameworks from http://www.kyngchaos.com/ GD framework
included. I've also installed the php-cgi 5.2 and used phpenable.app.
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.
Can you help me?

Thanks in advance.

-- 
Simone Dalmasso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080213/6140647d/attachment.html


More information about the mapserver-users mailing list