Difference between revisions of "MapServer at osgeo7"

From OSGeo
Jump to navigation Jump to search
 
(75 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Start page ==
+
== Public home page ==
* https://staging.demo.mapserver.org
+
* https://demo.mapserver.org
  
 
== Server Overview==
 
== Server Overview==
* [https://wiki.osgeo.org/wiki/SAC_Service_Status#osgeo_7 osgeo7]
+
* hosted on [https://wiki.osgeo.org/wiki/SAC_Service_Status#osgeo_7 osgeo7]
** contained named "mapserver"
+
* maintained by [[Jeff McKenna]] / GatewayGeo
** Debian 10 "Buster"
+
* dedicated container named "mapserver"
** gcc (Debian 8.3.0-6) 8.3.0
+
** Debian 11 "bullseye"
 +
** gcc (Debian 10.2.1-6) 10.2.1
  
 
== Status ==
 
== Status ==
 +
* 2024-07-09
 +
** jmckenna: upgraded to PHP 8.3.9
 +
* 2024-07-07
 +
** jmckenna: upgraded to Debian 11 "bullseye", GDAL 3.9.1, PHP 8.3.8
 +
* 2024-06-27
 +
** jmckenna: exposed SLD files, upgraded to MapServer-main
 +
* 2024-06-20
 +
** jmckenna: upgraded to MapServer-main
 +
* 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
 +
** jmckenna: rebooted, unable to access. Fixed by @robe through https://trac.osgeo.org/osgeo/ticket/2914
 +
* 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
 +
** Robe: point https://demo.mapserver.org to this osgeo7 VM (was staging.demo.mapserver.org)
 +
*** point old demo on [https://wiki.osgeo.org/wiki/MapServer_at_AdhocVM AdhocVM] to https://old.demo.mapserver.org
 +
*** ticket: https://trac.osgeo.org/osgeo/ticket/2459
 +
* 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
 
* 2020-07-24
** setup server on new container, as old [https://wiki.osgeo.org/wiki/MapServer_at_AdhocVM AdhocVM] host could no longer compile recent projects (because it still runs gcc 4.7.2)
+
** jmckenna: setup server on new container, as old [https://wiki.osgeo.org/wiki/MapServer_at_AdhocVM AdhocVM] host could no longer compile recent projects (because it still runs gcc 4.7.2)
** compiled MapServer, GDAL, PROJ from source
+
*** compiled MapServer, GDAL, PROJ from source
** moved all demo services
+
*** moved all demo services (except one)
  
 
== Participants ==
 
== Participants ==
 
* [[User:Jmckenna | Jeff McKenna]]
 
* [[User:Jmckenna | Jeff McKenna]]
* contact jmckenna for access (occurs by proxyjump through download container)
+
* contact jmckenna for access (occurs by proxyjump through 'hop.osgeo7.osgeo.org')
  
== MapServer Installation on AdhocVM  ==
+
== MapServer Installation on mapserver container ==
* MapServer master compiled, also GDAL 3.1.2, and PROJ 7.1.0 compiled from source
+
* home: ''/mapserver/''
* *home: ''/mapserver/''
 
  
 
=== Apache Configuration ===
 
=== Apache Configuration ===
Line 27: Line 88:
 
Note that a '''proxy is setup through osgeo7's nginx to point to the local Apache which is running on port 8081'''
 
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:
 
* server logfiles live at:
     /var/log/apache2/demo.mapserver.org-error_log
+
     /var/log/apache2/demo.mapserver.org-error.log
     /var/log/apache2/demo.mapserver.org-access_log
+
     /var/log/apache2/demo.mapserver.org-access.log
 
* mapserv and other service endpoints live at: /usr/lib/cgi-bin/
 
* mapserv and other service endpoints live at: /usr/lib/cgi-bin/
  
 
=== Restarting Apache ===
 
=== Restarting Apache ===
* set the FGS environment, in ''/osgeo/mapserver/fgs/'' execute the command:
+
* sudo systemctl restart apache2
    . setenv.sh
 
* then execute:
 
    fgs stop ; fgs start
 
  
 
=== Adding Apache Aliases ===
 
=== Adding Apache Aliases ===
* add symbolic links from ''/var/www/mapserver.org/'' to your app in ''/mapserver/apps/''
+
* add symbolic links from ''/var/www/demo.mapserver.org/'' to your app installed in ''/mapserver/apps/''
  
 
== Services on osgeo7 ==
 
== Services on osgeo7 ==
For each service you configure on demo.mapserver.org, please edit ''/var/www/mapserver.org/index.html'' and list your new service.
+
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 (7.4.3) ===
+
=== MapServer Tutorial ===
  
* This is a MapServer CGI instance, serving data files for the MapServer Tutorial at: http://www.mapserver.org/tutorial/
+
* This is a MapServer CGI instance, serving data files for the MapServer Tutorial at: https://mapserver.org/tutorial/
* On Disk: /osgeo/mapserver/tutorial/
+
* On Disk: /mapserver/apps/tutorial/
 
* On Web: https://demo.mapserver.org/tutorial/
 
* On Web: https://demo.mapserver.org/tutorial/
 +
* updated:
 +
** November 2021 for MapServer 8+
 +
** March 2020 for MapServer 7+
 
* Administrator: jmckenna
 
* Administrator: jmckenna
  
=== World Blue Marble ===  
+
=== WMS msautotest Service ===  
  
* Simple blue marble world WMS service with a latlong and mercator layer.  Used by MSAutoTest
+
* Simple WMS service with a latlong and mercator layer, with global extents.  Used by msautotest (for GDAL testing)
* On Disk: /osgeo/mapserver/msautotest/world
+
* On Disk: /mapserver/apps/msautotest/world/world.map
* On Web: https://demo.mapserver.org/cgi-bin/mapserv?map=/osgeo/mapserver/msautotest/world/world.map
+
* On Web: https://demo.mapserver.org/cgi-bin/msautotest?
* Administrator: Frank Warmerdam
+
* Administrator: jmckenna
  
 
=== WMS Service (for Documentation) ===
 
=== WMS Service (for Documentation) ===
  
 
* Small mapfile serving a raster file, and a single point, line, and poly file.  Used in the MapServer docs.
 
* Small mapfile serving a raster file, and a single point, line, and poly file.  Used in the MapServer docs.
* On Disk: /osgeo/mapserver/ogc-demos/map/wms.map
+
* On Disk: /mapserver/apps/ogc-demos/map/wms.map
 
* On Web: [https://demo.mapserver.org/cgi-bin/wms? https://demo.mapserver.org/cgi-bin/wms?]
 
* On Web: [https://demo.mapserver.org/cgi-bin/wms? https://demo.mapserver.org/cgi-bin/wms?]
 
* Administrator: jmckenna
 
* Administrator: jmckenna
Line 67: Line 128:
  
 
* Small mapfile serving an 8bit landsat image and a 16bit landsat image, used in the SLD doc.
 
* Small mapfile serving an 8bit landsat image and a 16bit landsat image, used in the SLD doc.
* On Disk: /osgeo/mapserver/ogc-demos/map/wms-raster.map
+
* On Disk: /mapserver/apps/ogc-demos/map/wms-raster.map
 
* On Web: [https://demo.mapserver.org/cgi-bin/wms_landsat? https://demo.mapserver.org/cgi-bin/wms_landsat?]
 
* On Web: [https://demo.mapserver.org/cgi-bin/wms_landsat? https://demo.mapserver.org/cgi-bin/wms_landsat?]
 
* Administrator: jmckenna
 
* Administrator: jmckenna
Line 74: Line 135:
  
 
* Small mapfile serving a point and polygon shapefile.  Used in the MapServer docs.
 
* Small mapfile serving a point and polygon shapefile.  Used in the MapServer docs.
* On Disk: /osgeo/mapserver/ogc-demos/map/wfs.map
+
* On Disk: /mapserver/apps/ogc-demos/map/wfs.map
 
* On Web: [https://demo.mapserver.org/cgi-bin/wfs? https://demo.mapserver.org/cgi-bin/wfs?]
 
* On Web: [https://demo.mapserver.org/cgi-bin/wfs? https://demo.mapserver.org/cgi-bin/wfs?]
 
* Administrator: jmckenna
 
* Administrator: jmckenna
Line 81: Line 142:
  
 
* Minnesota DNR demo, includes MODIS and NDVI imagery.  Used in the MapServer docs.
 
* Minnesota DNR demo, includes MODIS and NDVI imagery.  Used in the MapServer docs.
* On Disk: /osgeo/mapserver/ogc-demos/map/wcs.map
+
* On Disk: /mapserver/apps/ogc-demos/map/wcs.map
 
* On Web: [https://demo.mapserver.org/cgi-bin/wcs? https://demo.mapserver.org/cgi-bin/wcs?]
 
* On Web: [https://demo.mapserver.org/cgi-bin/wcs? https://demo.mapserver.org/cgi-bin/wcs?]
 
* Administrator: jmckenna
 
* Administrator: jmckenna
Line 88: Line 149:
  
 
* Small examples of OGR formats used in MapServer.  Used in the MapServer docs.
 
* Small examples of OGR formats used in MapServer.  Used in the MapServer docs.
* On Disk: /osgeo/mapserver/ogr-demos/
+
* On Disk: /mapserver/apps/ogr-demos/
 
* On Web: [https://demo.mapserver.org/ogr-demos/ https://demo.mapserver.org/ogr-demos/]
 
* On Web: [https://demo.mapserver.org/ogr-demos/ https://demo.mapserver.org/ogr-demos/]
 +
* Administrator: jmckenna
 +
 +
=== HTML Legend Examples (for Documentation) ===
 +
 +
* Small examples of HTML Legends used in MapServer.  Used in the MapServer docs.
 +
* On Disk: /mapserver/apps/itasca_legend/
 +
* On Web: [https://demo.mapserver.org/itasca_legend/ https://demo.mapserver.org/itasca_legend/]
 
* Administrator: jmckenna
 
* Administrator: jmckenna
  
 
=== WMS OpenStreetMap Service (for Documentation) ===
 
=== WMS OpenStreetMap Service (for Documentation) ===
  
* OSM data for Colorado loaded into PostgreSQL database, served by MapServer.  Used in the MapServer OpenLayers app on main site.
+
* OSM data for Minnesota loaded into PostgreSQL, served by MapServer.  Used in the OpenLayers app on main site.
* On Disk: /osgeo/mapserver/osm/map/osm.map
+
* On Disk: /mapserver/apps/osm/osm-google.map
* Port: 5433
+
* On Web: [https://demo.mapserver.org/cgi-bin/umn? https://demo.mapserver.org/cgi-bin/umn?]
* On Web: [https://demo.mapserver.org/cgi-bin/foss4g? https://demo.mapserver.org/cgi-bin/foss4g?]
 
 
* Administrator: jmckenna
 
* Administrator: jmckenna
* mapfile styling comes from the [http://code.google.com/p/mapserver-utils/source/checkout 'mapserver-utils' project]
 
** 'default.style' was used because there were errors with 'mapserver.style'
 
* To log into the 'osm' database:
 
** cd /osgeo/mapserver/fgs
 
** . setenv.sh
 
** psql -U postgres -d osm -p 5433
 
*** password for postgres user is postgres
 
  
 
=== Caching for mapserver.org OpenLayers viewer ===
 
=== Caching for mapserver.org OpenLayers viewer ===
* geocache.xml lives in:
+
* mapcache.xml lives in:
     /osgeo/mapserver/mapcache/
+
     /mapserver/apps/mapcache/
* geocache demos: https://demo.mapserver.org/geocache/demo/
+
* mapcache demos: https://demo.mapserver.org/mapcache/demo/
* after modifying geocache.xml, restart its Apache:  
+
* after modifying mapcache.xml, restart its Apache:  
     sudo /osgeo/mapserver/httpd/bin/apachectl restart
+
     sudo systemctl restart apache2
 
* mapfile:  
 
* mapfile:  
     /osgeo/mapserver/osm/map/osm.map
+
     /mapserver/apps/osm/osm-google.map
 
* seed command:
 
* seed command:
     sudo geocache_seed -c geocache.xml -t osm-denver -g osmgrid -z 0,13
+
     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:
 
* cache directory:
     /osgeo/mapserver/mapcache/disk-cache
+
     /mapserver/ms_tmp/cache/osm-mn-tileset/
* viewing seed levels: https://demo.mapserver.org/geocache/tms1.0.0/osm-denver@osmgrid/
+
* viewing seed levels: https://demo.mapserver.org/mapcache/tms1.0.0/osm-mn-tileset@GoogleMapsCompatible/
 
 
=== HTML Legend Examples (for Documentation) ===
 
 
 
* Small examples of HTML Legends used in MapServer.  Used in the MapServer docs.
 
* On Disk: /osgeo/mapserver/itasca_legend/
 
* On Web: [https://demo.mapserver.org/itasca_legend/ https://demo.mapserver.org/itasca_legend/]
 
* Administrator: jmckenna
 
 
 
=== MapServer 7.x CGI ===
 
 
 
==== 7.6-dev ====
 
 
 
* A statically compiled "mapserv76" CGI has been compiled to support the V7+ tutorial. This is a static build so it has no external dependency.
 
* Web URL: https://demo.mapserver.org/cgi-bin/mapserv76
 
* Source build in /osgeo/mapserver/mapserver-git-branch-7-6/build
 
* Administrators: jmckenna
 
* build instructions for reference:
 
  
$ cd /osgeo/mapserver/
+
=== MapServer 7+ CGI ===
$ git clone -b branch-7-6 https://github.com/mapserver/mapserver.git mapserver-git-branch-7-6
 
$ cd mapserver-git-branch-7-6
 
$ mkdir build
 
$ cd build
 
$ cmake .. -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_SOS=1 -DWITH_WCS=1 -DWITH_WMS=1 -DWITH_WFS=1 -DWITH_FCGI=0 -DWITH_PROJ=1 -DWITH_GDAL=1 -DWITH_OGR=1 -DUSE_POINT_Z_M=1 -DWITH_PIXMAN=0 -DLINK_STATIC_LIBMAPSERVER=1 -DWITH_PYTHON=0 -DWITH_FRIBIDI=0 -DWITH_HARFBUZZ=0 -DWITH_CAIRO=0 -DWITH_FCGI=0 -DWITH_PROTOBUFC=0 -DWITH_KML=1
 
$ make
 
$ cp /osgeo/mapserver/mapserver-git-branch-7-6/build/mapserv /osgeo/mapserver/fgs/www/cgi-bin/mapserv76
 
$ cp /osgeo/mapserver/mapserver-git-branch-7-6/build/mapserv /osgeo/mapserver/fgs/www/cgi-bin/mapserv
 
  
==== 7.4.4 ====
+
==== main ====
  
* A statically compiled "mapserv74" CGI has been compiled to support the V7+ tutorial. This is a static build so it has no external dependency.
+
* A dynamically compiled "mapserv" CGI has been compiled to support V7+ demo services.
* Web URL: https://demo.mapserver.org/cgi-bin/mapserv74
+
* Web URL: https://demo.mapserver.org/cgi-bin/mapserv
* Source build in /osgeo/mapserver/mapserver-git-branch-7-4/build
+
* Source build in /mapserver/src/MapServer-git-main/build
 
* Administrators: jmckenna
 
* Administrators: jmckenna
 
* build instructions for reference:
 
* build instructions for reference:
  
  $ cd /osgeo/mapserver/
+
  $ cd /mapserver/src/MapServer-git-main/build
$ git clone -b branch-7-4 https://github.com/mapserver/mapserver.git mapserver-git-branch-7-4
+
  $ 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
$ cd mapserver-git-branch-7-4
 
$ mkdir build
 
$ cd build
 
  $ cmake .. -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_SOS=1 -DWITH_WCS=1 -DWITH_WMS=1 -DWITH_WFS=1 -DWITH_FCGI=0 -DWITH_PROJ=1 -DWITH_GDAL=1 -DWITH_OGR=1 -DUSE_POINT_Z_M=1 -DWITH_PIXMAN=0 -DLINK_STATIC_LIBMAPSERVER=1 -DWITH_PYTHON=0 -DWITH_FRIBIDI=0 -DWITH_HARFBUZZ=0 -DWITH_CAIRO=0 -DWITH_FCGI=0 -DWITH_PROTOBUFC=0 -DWITH_KML=1
 
$ make
 
$ cp /osgeo/mapserver/mapserver-git-branch-7-4/build/mapserv /osgeo/mapserver/fgs/www/cgi-bin/mapserv74
 
$ cp /osgeo/mapserver/mapserver-git-branch-7-4/build/mapserv /osgeo/mapserver/fgs/www/cgi-bin/mapserv
 
 
 
==== 7.0.6 ====
 
 
 
* A statically compiled "mapserv70" CGI has been compiled to support the V7+ tutorial. This is a static build so it has no external dependency.
 
* Web URL: https://demo.mapserver.org/cgi-bin/mapserv70
 
* Source build in /osgeo/mapserver/mapserver-git-branch-7-0/build
 
* Note that this binary has to be installed under the FGS server's /osgeo/mapserver/fgs/www/cgi-bin/ directory since that's where the https://demo.mapserver.org/cgi-bin/ points to
 
* Administrators: dmorissette / jmckenna
 
* build instructions for reference:
 
 
 
$ cd /osgeo/mapserver/
 
$ git clone https://github.com/mapserver/mapserver.git mapserver-git
 
$ cd mapserver-git/
 
$ git checkout branch-7-0
 
$ mkdir build
 
$ cd build
 
$ cmake .. -DLINK_STATIC_LIBMAPSERVER=1 -DWITH_PYTHON=0 -DWITH_FRIBIDI=0 -DWITH_HARFBUZZ=0 -DWITH_CAIRO=0 -DWITH_FCGI=0
 
 
  $ make
 
  $ make
  $ cp /osgeo/mapserver/mapserver-git-branch-7-0/build/mapserv /osgeo/mapserver/fgs/www/cgi-bin/mapserv70
+
  $ cp /mapserver/src/MapServer-git-main/build/mapserv /usr/lib/cgi-bin/
  
  
 
[[Category:MapServer]]
 
[[Category:MapServer]]
 
[[Category:Infrastructure]]
 
[[Category:Infrastructure]]

Latest revision as of 06:30, 9 July 2024

Public home page

Server Overview

  • hosted on osgeo7
  • maintained by Jeff McKenna / GatewayGeo
  • dedicated container named "mapserver"
    • Debian 11 "bullseye"
    • gcc (Debian 10.2.1-6) 10.2.1

Status

  • 2024-07-09
    • jmckenna: upgraded to PHP 8.3.9
  • 2024-07-07
    • jmckenna: upgraded to Debian 11 "bullseye", GDAL 3.9.1, PHP 8.3.8
  • 2024-06-27
    • jmckenna: exposed SLD files, upgraded to MapServer-main
  • 2024-06-20
    • jmckenna: upgraded to MapServer-main
  • 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

  • Simple WMS service with a latlong and mercator layer, with global extents. Used by msautotest (for GDAL testing)
  • On Disk: /mapserver/apps/msautotest/world/world.map
  • On Web: https://demo.mapserver.org/cgi-bin/msautotest?
  • Administrator: jmckenna

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)

WMS OpenStreetMap Service (for Documentation)

  • OSM data for Minnesota loaded into PostgreSQL, served by MapServer. Used in the OpenLayers app on main site.
  • On Disk: /mapserver/apps/osm/osm-google.map
  • On Web: https://demo.mapserver.org/cgi-bin/umn?
  • Administrator: jmckenna

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

  • 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-git-main/build
  • Administrators: jmckenna
  • build instructions for reference:
$ 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/