Skip to content

jbelien/MapFile-Generator

Repository files navigation

MapFile Generator

MapServer .MAP Generator (Read, Write & Preview)

Screenshots : https://github.com/jbelien/MapFile-Generator/wiki/Screenshots

Still in development ! Use with caution.

Feel free to test it, criticize it and make any suggestion ! :)


Required :


Installation

composer require jbelien/mapfile-generator

Configuration

Create a settings.ini file in "MapFile Generator" root directory.

These are the parameters available :

  • mapserv : url path to mapserv
  • fontset : full path to MapServer fontset file
  • symbolset : full path to MapServer symbolset file
  • font : default fontname (label, legend, scalebar, ...)
  • directory : full path to directory containing .map files
  • library : full path to directory containing MapFile PHP Library (optional)

Example :

mapserv   = "/cgi-bin/mapserv"
fontset   = "/usr/lib/cgi-bin/fonts.txt"
symbolset = "/usr/lib/cgi-bin/symbols.txt"
font      = "dejavusans"
directory = "/var/www/mapserver-data"
library   = "/var/www/library/mapfile-php-library"

Usage

Go to Documentation wiki page.

Libraries

If PHP MapScript is not enabled, this application can use MapFile PHP Library to read and write the MapFile.

  1. Download the MapFile PHP Library here : https://github.com/jbelien/MapFile-PHP-Library/archive/master.zip
  2. Copy the php files on your webserver
  3. Update settings.ini to define the library parameter

Documentation of the MapFile PHP Library : http://jbelien.github.io/MapFile-PHP-Library/docs/namespaces/MapFile.html