Skip to content

programmerg/MapAdmin

Repository files navigation

logo MapAdmin

MapAdmin is a web administration interface and a PHP wrapper around MapServer which allows to manipulate mapfiles in a RESTFul way. It has been developped to match as close as possible the way the GeoServer REST API acts.

It is Free and Open Source Software. All contributions are most welcome!

Inspiration

Components

  • Webserver (Apache / nginx)
  • MapServer
  • MapCache
  • MapAdmin REST API
  • MapAdmin Web client

Supported OGC Web Services

  • Web Feature Service (WFS)
  • Web Map Service (WMS)
  • Web Catalogue Service (WCS)
  • Web Map Tile Service (WMTS)
  • Tile Map Service (TMS)
  • Sensor Observation Service (SOS)
  • OGC API

For more information, visit the documentation

Usage

MapAdmin can be installed on almost any existing apache + mapserver environment.

Or conveniently as a new service using docker.

Build the Docker image

docker build \
  --target apache \
  --build-arg MAPSERVER_VERSION="8.0.1" \
  --build-arg MAPCACHE_VERSION="1.14.0" \
  --build-arg NGINX_VERSION="1.26.0" \
  -t mapserver:8.0-1.14-apache .

Run the Docker container

docker run \
  -d -p 80:80 \
  -v "path/to/folder:/var/www/data_dir" \
  --name mapserver \
  mapserver:8.0-1.14-apache

Execute commands in the container

docker exec \
  -it mapserver \
  mapcache_seed -c /var/www/data_dir/mapcache.xml -t "$tileSetName" -g "$gridName"

License

This project is Free and Open Source Software, licensed under the MIT license.