Difference between revisions of "MapServer at osgeo7"

From OSGeo
Jump to navigation Jump to search
(No difference)

Latest revision as of 12:20, 27 October 2020

Start page

Server Overview

  • hosted on osgeo7
    • dedicated container named "mapserver"
    • Debian 10 "Buster"
    • gcc (Debian 8.3.0-6) 8.3.0


  • 2020-10-27
    • upgraded to PROJ 7.2.0rc1, GDAL 3.2.0rc1, MapServer-master
  • 2020-09-11
    • upgraded to PROJ 7.1.1, GDAL 3.1.3, MapServer-master
  • 2020-07-24
    • setup server on new container, as old AdhocVM host could no longer compile recent projects (because it still runs gcc 4.7.2)
    • compiled MapServer, GDAL, PROJ from source
    • moved all demo services (except one)


  • Jeff McKenna
  • contact jmckenna for access (occurs by proxyjump through 'download' container)

MapServer Installation on mapserver container

  • MapServer master compiled, also GDAL 3.1.2, and PROJ 7.1.0 compiled from source
  • home: /mapserver/

Apache Configuration

A virtualhost is setup for demo.mapserver.org, through:

  • /etc/apache2/sites_available/demo.mapserver.org

Note that a proxy is setup through osgeo7's nginx to point to the local Apache which is running on port 8081

  • server logfiles live at:
  • mapserv and other service endpoints live at: /usr/lib/cgi-bin/

Restarting Apache

  • sudo systemctl restart apache2

Adding Apache Aliases

  • add symbolic links from /var/www/demo.mapserver.org/ to your app installed in /mapserver/apps/

Services on osgeo7

For each service you configure on demo.mapserver.org, please edit /var/www/demo.mapserver.org/index.html and list your new service.

MapServer Tutorial

World Blue Marble

WMS Service (for Documentation)

  • Small mapfile serving a raster file, and a single point, line, and poly file. Used in the MapServer docs.
  • On Disk: /mapserver/apps/ogc-demos/map/wms.map
  • On Web: https://demo.mapserver.org/cgi-bin/wms?
  • Administrator: jmckenna

WMS Landsat7 Service (for Documentation)

WFS Service (for Documentation)

  • Small mapfile serving a point and polygon shapefile. Used in the MapServer docs.
  • On Disk: /mapserver/apps/ogc-demos/map/wfs.map
  • On Web: https://demo.mapserver.org/cgi-bin/wfs?
  • Administrator: jmckenna

WCS Service (for Documentation)

  • Minnesota DNR demo, includes MODIS and NDVI imagery. Used in the MapServer docs.
  • On Disk: /mapserver/apps/ogc-demos/map/wcs.map
  • On Web: https://demo.mapserver.org/cgi-bin/wcs?
  • Administrator: jmckenna

OGR Examples (for Documentation)

HTML Legend Examples (for Documentation)

MapServer 7.x CGI


  • A dynamically compiled "mapserv" CGI has been compiled to support V7+ demo services.
  • Web URL: https://demo.mapserver.org/cgi-bin/mapserv
  • Source build in /mapserver/src/mapserver-master/build
  • Administrators: jmckenna
  • build instructions for reference:
$ cd /mapserver/src/mapserver-master/build
$ make
$ cp /mapserver/src/mapserver-master/build/mapserv /usr/lib/cgi-bin/