TikiMapDoc

User Documentation
franck has developed and Id'ed some of the dependencies

you need Mapserver v4.0(external link) php_mapscript.so and have your .map files in /var/www/html/map/. This is configurable from the Admin/Features menu.

The Maps File Gallery(external link) contains a binary version of php_mapscript.so that may work for you. It will also contains some sample map files and layer files for you to set up a basic application.

Mapserver v4.0(external link) needs to work from php.cgi and not the apache module.

The default map file is pacific.map if you do not specify anything when clicking on tiki-map.phtml. This is also configurable from the Admin/Features menu.

I use the following conf file for Apache:

AddHandler phtml-script .phtml
Action phtml-script /cgi-bin/php.cgi
  
#protect mapserver against downloads
<Directory /var/www/html/map>
    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    <IfModule mod_access.c>
         Order allow,deny
         Deny from all
    </IfModule>
</Directory>
<Directory /var/www/html/map/images>
    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    <IfModule mod_access.c>
         Order allow,deny
         Allow from all
    </IfModule>
</Directory>
<Directory /var/www/html/map/graphics>
    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    <IfModule mod_access.c>
         Order allow,deny
         Allow from all
    </IfModule>
</Directory>
<Location /tiki/files>
    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    <IfModule mod_access.c>
         Order allow,deny
         Allow from all
    </IfModule>
    <IfModule mod_mime.c>
         SetHandler default-handler
    </IfModule>
</Location>


As you see from this file the cgi version of php is in the /cgi-bin/ directory of the web server. This is why the map rendering page is called tiki-map.phtml instead of the classical php extension. Hopefully in the next version of Mapserver the mapscript will run inside the php apache module.

Your files that compose the layers must be in the data subdirectory of where are your map files. ie /var/www/html/map/data. They are then manageable with the Layer Manager. You can create subdirectories and upload your geographic files...

When someone wants to download a layer, all the files are copied in the /tiki/files location for download. Unfortunately on my system the file with the extension .MAP are handled as html maps. I created a special directive for http to handle all the files in the /tiki/files directory as normal files.

Try it out
please link to the live Feature on tikiwiki.org

or go to http://map.sopac.org/(external link)
see also http://www.sopac.org/tiki/tiki-index.php?page=MapServer(external link)
Notes
This page is for the latest released stable version or release candidate(not stuff in CVS).
  • can the required items be included in the installation? as an option? Unlikely: Mapserserver needs to be properly configured depending of your mileage.

Knowledgebase / tutorial / FAQ / How-to


TikiTeam
Who is working here generally?
UserPagefranck
UserPagemose

For more information
I hang out on the irc #tikiwiki channel

Contributors to this page: DennisDaniels1273 points  , Franck347 points  and mose4370 points  .
Page last modified on Thursday 10 June 2004 06:35:12 CEST by DennisDaniels1273 points .

Switch Language

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki

Shoutbox

Torsten2431 points , 00:16 CEST, Fri 18 May 2012: oops Marc postponed to Friday 18th of May and then always at the third Friday
Torsten2431 points , 14:06 CEST, Sun 22 Apr. 2012: Next Webinar at Thursday, 17th of May 2012 (21:00 UTC)at http://tiki.org/live
Torsten2431 points , 11:43 CEST, Tue 10 Apr. 2012: Next Webinar at Thursday, 19th of April 2012 (21:00 UTC) at http://tiki.org/live
Jyhem2569 points , 13:07 CET, Fri 16 Mar. 2012: What happened to the BBB room ?
Torsten2431 points , 01:44 CET, Sat 25 Feb. 2012: Next Webinar at Thursday, 15th of March 2012 (21:00 UTC) at http://tiki.org/live