Loading...
 

TikiMapDoc

User Documentation

franck has developed and Id'ed some of the dependencies

you need Mapserver v4.0 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 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 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

    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    
         Order allow,deny
         Deny from all
    


    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    
         Order allow,deny
         Allow from all
    


    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    
         Order allow,deny
         Allow from all
    


    AllowOverride All
    Options -Indexes FollowSymLinks MultiViews ExecCGI
    
         Order allow,deny
         Allow from all
    
    
         SetHandler default-handler
    


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/
see also http://www.sopac.org/tiki/tiki-index_raw.php?page=MapServer

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

Created by: Last Modification: Friday 20 September 2019 16:38:35 GMT-0000 by drsassafras
List Slides