Difference between revisions of "MapServer at osgeo7"
Jump to navigation
Jump to search
(→Status) |
|||
Line 11: | Line 11: | ||
* 2021-11-07 | * 2021-11-07 | ||
** Robe: point https://demo.mapserver.org to this osgeo7 VM (was staging.demo.mapserver.org) | ** Robe: point https://demo.mapserver.org to this osgeo7 VM (was staging.demo.mapserver.org) | ||
− | *** point old demo on | + | *** 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 | *** ticket: https://trac.osgeo.org/osgeo/ticket/2459 | ||
* 2021-10-30 | * 2021-10-30 |
Revision as of 06:12, 8 November 2021
Start page
Server Overview
- hosted on osgeo7
- dedicated container named "mapserver"
- Debian 10 "Buster"
- gcc (Debian 8.3.0-6) 8.3.0
Status
- 2021-11-07
- Robe: point https://demo.mapserver.org to this osgeo7 VM (was staging.demo.mapserver.org)
- point old demo on AdhocVM to https://old.demo.mapserver.org
- ticket: https://trac.osgeo.org/osgeo/ticket/2459
- Robe: point https://demo.mapserver.org to this osgeo7 VM (was staging.demo.mapserver.org)
- 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)
- jmckenna: setup server on new container, as old AdhocVM host could no longer compile recent projects (because it still runs gcc 4.7.2)
Participants
- Jeff McKenna
- contact jmckenna for access (occurs by proxyjump through 'download' container)
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
- This is a MapServer CGI instance, serving data files for the MapServer Tutorial at: https://mapserver.org/tutorial/
- On Disk: /mapserver/apps/tutorial/
- On Web: https://demo.mapserver.org/tutorial/
- updated in March 2020 for MapServer 7+
- Administrator: jmckenna
World Blue Marble
- Simple blue marble world WMS service with a latlong and mercator layer. Used by MSAutoTest
- On Disk: /mapserver/apps/msautotest/world
- 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)
- Small mapfile serving an 8bit landsat image and a 16bit landsat image, used in the SLD doc.
- On Disk: /mapserver/apps/ogc-demos/map/wms-raster.map
- On Web: https://demo.mapserver.org/cgi-bin/wms_landsat?
- Administrator: jmckenna
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)
- Small examples of OGR formats used in MapServer. Used in the MapServer docs.
- On Disk: /mapserver/apps/ogr-demos/
- On Web: 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/
- Administrator: jmckenna
Caching for mapserver.org OpenLayers viewer
- mapcache.xml lives in:
/mapserver/apps/mapcache/
- mapcache demos: https://demo.mapserver.org/mapcache/demo/
- after modifying mapcache.xml, restart its Apache:
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/
- viewing seed levels: https://demo.mapserver.org/mapcache/tms1.0.0/osm-mn-tileset@GoogleMapsCompatible/
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/