Difference between revisions of "MapServer at osgeo7"

From OSGeo
Jump to navigation Jump to search
Line 9: Line 9:
  
 
== Status ==
 
== Status ==
 +
* 2024-06-08
 +
** jmckenna: upgraded to PROJ 9.4.1, GDAL 3.9.0, MapServer-main, MapCache-main
 
* 2024-04-15
 
* 2024-04-15
 
** jmckenna: upgraded to PROJ 9.4.0, GDAL 3.8.5, MapServer-main, MapCache-main
 
** jmckenna: upgraded to PROJ 9.4.0, GDAL 3.8.5, MapServer-main, MapCache-main

Revision as of 16:35, 8 June 2024

Start page

Server Overview

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

Status

  • 2024-06-08
    • jmckenna: upgraded to PROJ 9.4.1, GDAL 3.9.0, MapServer-main, MapCache-main
  • 2024-04-15
    • jmckenna: upgraded to PROJ 9.4.0, GDAL 3.8.5, MapServer-main, MapCache-main
  • 2024-01-26
    • jmckenna: upgraded to PROJ 9.3.1, GDAL 3.8.3, MapServer-main, MapCache-main
  • 2023-10-23
    • jmckenna: upgraded to MapServer-main, changes for HTTP/2 support
  • 2023-09-15
    • jmckenna: upgraded to PROJ 9.3.0, GDAL 3.7.2, MapServer-main, MapCache-main
  • 2023-07-13
    • jmckenna: upgraded to PROJ 9.2.1, GDAL 3.7.1, MapServer-main
  • 2023-04-12
    • jmckenna: upgraded to PROJ 9.2.0, GDAL 3.6.3, MapServer-main, MapCache-main
  • 2023-04-09
  • 2022-11-28
    • jmckenna: upgraded to MapServer-main, rebooted
  • 2022-09-12
    • jmckenna: upgraded to MapServer-main, added OGCAPI: Features demo
  • 2022-09-05
    • jmckenna: upgraded to MapServer-main
  • 2022-09-02
    • jmckenna: upgraded to MapServer-main
  • 2022-08-08
    • jmckenna: upgraded to MapServer-main, restart PostgreSQL
  • 2022-06-26
    • jmckenna: upgraded to MapServer-main
  • 2022-05-17
    • jmckenna: upgraded to GDAL 3.4.3, MapServer-main, various changes for HTML Legends demo
  • 2022-03-29
    • jmckenna: upgraded to PROJ 8.2.1, GDAL 3.4.2, GeoTIFF 1.7.1, MapServer-main
  • 2021-11-20
    • jmckenna: setup Apache rewrite for old map= paths
  • 2021-11-19
    • jmckenna: upgraded to MapServer-main, various changes for tutorial
  • 2021-11-08
    • jmckenna: upgraded to GDAL 3.4.0
      • updates to all OGC services
  • 2021-11-07
  • 2021-10-30
    • jmckenna: upgraded to PROJ 8.2.0, GDAL 3.3.3, GeoTIFF 1.7.0, MapServer-main, MapCache-main
  • 2021-05-28
    • jmckenna: setup MapCache
  • 2021-05-16
    • jmckenna: upgraded to PROJ 8.0.1, GDAL 3.3.0, MapServer-main
  • 2020-10-27
    • jmckenna: upgraded to PROJ 7.2.0rc1, GDAL 3.2.0rc1, MapServer-master
  • 2020-09-11
    • jmckenna: upgraded to PROJ 7.1.1, GDAL 3.1.3, MapServer-master
  • 2020-07-24
    • jmckenna: 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)

Participants

  • Jeff McKenna
  • contact jmckenna for access (occurs by proxyjump through 'hop.osgeo7.osgeo.org')

MapServer Installation on mapserver container

  • 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:
   /var/log/apache2/demo.mapserver.org-error.log
   /var/log/apache2/demo.mapserver.org-access.log
  • 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

WMS msautotest Service

WMS Service (for Documentation)

WMS Landsat7 Service (for Documentation)

WFS Service (for Documentation)

WCS Service (for Documentation)

OGR Examples (for Documentation)

HTML Legend Examples (for Documentation)

WMS OpenStreetMap Service (for Documentation)

Caching for mapserver.org OpenLayers viewer

  • mapcache.xml lives in:
   /mapserver/apps/mapcache/
   sudo systemctl restart apache2
  • mapfile:
   /mapserver/apps/osm/osm-google.map
  • seed command:
   sudo mapcache_seed -c /mapserver/apps/mapcache/mapcache.xml -t osm-mn-tileset -g GoogleMapsCompatible -z 0,13 -e -10484037,5552055,-10288486,5668255 -i scanline
  • cache directory:
   /mapserver/ms_tmp/cache/osm-mn-tileset/

MapServer 7+ CGI

main

$ cd /mapserver/src/MapServer-git-main/build
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_KML=1 -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_CURL=1 -DWITH_FRIBIDI=1 -DWITH_GIF=1 -DWITH_HARFBUZZ=1 -DWITH_ICONV=1 -DWITH_SOS=1 -DWITH_WCS=1 -DWITH_WMS=1 -DWITH_WFS=1 -DWITH_FCGI=0 -DPOSTGRESQL_LIBRARY=/usr/local/pgsql/lib/libpq.so -DWITH_CAIRO=1 -DWITH_POSTGIS=1 -DWITH_GEOS=1 -DWITH_PIXMAN=0 -DWITH_PROTOBUFC=1 -DWITH_RSVG=1
$ make
$ cp /mapserver/src/MapServer-git-main/build/mapserv /usr/lib/cgi-bin/