Difference between revisions of "MapServer at osgeo7"
Jump to navigation
Jump to search
(→Status) |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== 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] |
− | ** | + | ** dedicated container named "mapserver" |
** Debian 10 "Buster" | ** Debian 10 "Buster" | ||
** gcc (Debian 8.3.0-6) 8.3.0 | ** gcc (Debian 8.3.0-6) 8.3.0 | ||
== Status == | == Status == | ||
+ | * 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 | * 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) | ** 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 'download' container) |
− | == MapServer Installation on | + | == MapServer Installation on mapserver container == |
* MapServer master compiled, also GDAL 3.1.2, and PROJ 7.1.0 compiled from source | * MapServer master compiled, also GDAL 3.1.2, and PROJ 7.1.0 compiled from source | ||
− | + | * home: ''/mapserver/'' | |
=== Apache Configuration === | === Apache Configuration === | ||
Line 27: | Line 31: | ||
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- | + | /var/log/apache2/demo.mapserver.org-error.log |
− | /var/log/apache2/demo.mapserver.org- | + | /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 === | ||
− | * | + | * sudo systemctl restart apache2 |
− | |||
− | |||
− | |||
=== 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 | + | === 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: http://www.mapserver.org/tutorial/ | ||
− | * On Disk: / | + | * On Disk: /mapserver/apps/tutorial/ |
* On Web: https://demo.mapserver.org/tutorial/ | * On Web: https://demo.mapserver.org/tutorial/ | ||
+ | * updated in March 2020 for MapServer 7 | ||
* Administrator: jmckenna | * Administrator: jmckenna | ||
Line 53: | Line 55: | ||
* Simple blue marble world WMS service with a latlong and mercator layer. Used by MSAutoTest | * Simple blue marble world WMS service with a latlong and mercator layer. Used by MSAutoTest | ||
− | * On Disk: / | + | * On Disk: /mapserver/apps/msautotest/world |
− | * On Web: https://demo.mapserver.org/cgi-bin/ | + | * On Web: https://demo.mapserver.org/cgi-bin/msautotest? |
− | * Administrator: | + | * 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: / | + | * 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 69: | ||
* 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: / | + | * 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 76: | ||
* 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: / | + | * 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 83: | ||
* 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: / | + | * 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 90: | ||
* 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: / | + | * 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 | * Administrator: jmckenna | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== HTML Legend Examples (for Documentation) === | === HTML Legend Examples (for Documentation) === | ||
* Small examples of HTML Legends used in MapServer. Used in the MapServer docs. | * Small examples of HTML Legends used in MapServer. Used in the MapServer docs. | ||
− | * On Disk: / | + | * On Disk: /mapserver/apps/itasca_legend/ |
* On Web: [https://demo.mapserver.org/itasca_legend/ https://demo.mapserver.org/itasca_legend/] | * On Web: [https://demo.mapserver.org/itasca_legend/ https://demo.mapserver.org/itasca_legend/] | ||
* Administrator: jmckenna | * Administrator: jmckenna | ||
Line 130: | Line 103: | ||
=== MapServer 7.x CGI === | === MapServer 7.x CGI === | ||
− | ==== | + | ==== master ==== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * A | + | * A dynamically compiled "mapserv" CGI has been compiled to support V7+ demo services. |
− | * Web URL: https://demo.mapserver.org/cgi-bin/ | + | * Web URL: https://demo.mapserver.org/cgi-bin/mapserv |
− | * Source build in / | + | * Source build in /mapserver/src/mapserver-master/build |
* Administrators: jmckenna | * Administrators: jmckenna | ||
* build instructions for reference: | * build instructions for reference: | ||
− | $ cd | + | $ cd /mapserver/src/mapserver-master/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 -DUSE_POINT_Z_M=1 -DWITH_PIXMAN=0 -DWITH_PROTOBUFC=1 -DWITH_RSVG=1 | |
− | |||
− | |||
− | |||
− | $ cmake .. - | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
$ make | $ make | ||
− | $ cp / | + | $ cp /mapserver/src/mapserver-master/build/mapserv /usr/lib/cgi-bin/ |
[[Category:MapServer]] | [[Category:MapServer]] | ||
[[Category:Infrastructure]] | [[Category:Infrastructure]] |
Latest revision as of 12:20, 27 October 2020
Contents
- 1 Start page
- 2 Server Overview
- 3 Status
- 4 Participants
- 5 MapServer Installation on mapserver container
- 6 Services on osgeo7
- 6.1 MapServer Tutorial
- 6.2 World Blue Marble
- 6.3 WMS Service (for Documentation)
- 6.4 WMS Landsat7 Service (for Documentation)
- 6.5 WFS Service (for Documentation)
- 6.6 WCS Service (for Documentation)
- 6.7 OGR Examples (for Documentation)
- 6.8 HTML Legend Examples (for Documentation)
- 6.9 MapServer 7.x CGI
Start page
Server Overview
- hosted on osgeo7
- dedicated container named "mapserver"
- Debian 10 "Buster"
- gcc (Debian 8.3.0-6) 8.3.0
Status
- 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)
Participants
- 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:
/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: http://www.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
MapServer 7.x CGI
master
- 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 $ 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 -DUSE_POINT_Z_M=1 -DWITH_PIXMAN=0 -DWITH_PROTOBUFC=1 -DWITH_RSVG=1 $ make $ cp /mapserver/src/mapserver-master/build/mapserv /usr/lib/cgi-bin/