Opened 23 months ago
Closed 14 months ago
#2409 closed defect (fixed)
MapServer 8.0 CONFIG
Reported by: | kalxas | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | OSGeoLive16.0 |
Component: | OSGeoLive | Keywords: | mapserver |
Cc: | osgeolive@… |
Description
MapServer 8.0 debian package is now available in our nightly ppa:
MapServer 8.0 requires to setup a CONFIG file:
https://mapserver.org/mapfile/config.html
The following error can be replicated in build22:
msLoadConfig(): Unable to access file.
Change History (16)
comment:1 by , 22 months ago
comment:2 by , 22 months ago
Copying Seth's comments from the pull request.
This pull requests includes the following:
- points to the new updated demo (see https://github.com/MapServer/MapServer-demo/pull/7 - a new v1.2 tag was created for this)
- adds a new CONFIG file required for MapServer 8.0. Move the current environment variables from Apache to the CONFIG file
- adds a new ITASCA setting to the CONFIG file (so it can be used for the OGC Features API - can add some notes to the quickstart on this)
- adds in the new php-mapscript-ng module
Note these changes haven't been tested with a full build of the OSGeoLive ISO, so there may need to be tweaks after a new beta build.
TODO:
- the Itasca demo is currently broken until the TEMPLATE value can be set via a URL. See https://github.com/MapServer/MapServer/pull/6469#issuecomment-1375928613. Once this is merged and backported hopefully there can be a new MapServer 8.0 patch release used for OSGeoLive?
- confirm if the PROJ_LIB" "/usr/share/proj" setting in the CONFIG is required - or is this the default location anyway?
- update MS_DOCS_VERSION="7-6" to MS_DOCS_VERSION="8-0" when this file is available. It needs to be uploaded to http://download.osgeo.org/livedvd/data/mapserver/mapserver-8-0-html-docs.zip (see directory contents at http://download.osgeo.org/livedvd/data/mapserver/)
- it would be nice to include the html-bootstrap4 templates - currently only html-plain are added in the UbuntuGIS package
comment:3 by , 22 months ago
Priority: | blocker → critical |
---|
MapServer demo works again on build27
http://download.osgeo.org/livedvd/nightly/osgeolive-nightly-build27-amd64-3c5c53d-master.iso
Leaving ticket open to track todo items
comment:4 by , 22 months ago
I've uploaded the latest docs to https://www.dropbox.com/s/oo9sulhheac7ejw/mapserver-8-0-html-docs.zip?dl=0 using the same naming convention / structure as previously.
@kalxas do you have permissions to upload this file to http://download.osgeo.org/livedvd/data/mapserver/ ?
comment:5 by , 22 months ago
comment:6 by , 22 months ago
Thank you, it is now available:
http://download.osgeo.org/livedvd/data/mapserver/mapserver-8-0-html-docs.zip
comment:8 by , 22 months ago
TODO list update:
- the Itasca demo is currently broken until the TEMPLATE value can be set via a URL. See https://github.com/MapServer/MapServer/pull/6469#issuecomment-1375928613. Once this is merged and backported hopefully there can be a new MapServer 8.0 patch release used for OSGeoLive?
- DONE - confirm if the PROJ_LIB" "/usr/share/proj" setting in the CONFIG is required - or is this the default location anyway?
- DONE - update MS_DOCS_VERSION="7-6" to MS_DOCS_VERSION="8-0" when this file is available. It needs to be uploaded to http://download.osgeo.org/livedvd/data/mapserver/mapserver-8-0-html-docs.zip (see directory contents at http://download.osgeo.org/livedvd/data/mapserver/)
- it would be nice to include the html-bootstrap4 templates - currently only html-plain are added in the UbuntuGIS package
For the last item, there was an IRC discussion on DebianGIS IRC, this will not happen upstream due to JavaScript licensing issues.
comment:9 by , 22 months ago
Priority: | critical → major |
---|
comment:10 by , 22 months ago
Thanks for the update @kalxas, I thought there might be a reason why it wasn't included. Do you have a link to the discussion? It would be good to know which JS library was an issue so that if a different template is used it can be avoided. For now the plain templates will suffice. Once the 8.0 patch release is out the final issues should be resolved.
comment:12 by , 17 months ago
the contents of the link http://download.osgeo.org/livedvd/data/mapserver/mapserver-8-0-html-docs.zip is definitely version 7 docs.
the mapserver docs on build beta1 are also version 7 docs.
comment:13 by , 17 months ago
mapserver 8 demo Notebook shows :
# First let's get the extent of the map to use in the request extent = map.extent print(extent) bbox = "BBOX={},{},{},{}".format(extent.minx, extent.miny, extent.maxx, extent.maxy) querystring = "SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=lakespy2&CRS=EPSG:26915&FORMAT=image/png&WIDTH=400&HEIGHT=400&{}".format(bbox) ows_req = mapscript.OWSRequest() ... MapServerError: msWMSLoadGetMapParams(): WMS server error. Missing required parameter STYLES. Note to service administrators: defining the "wms_allow_getmap_without_styles" "true" MAP.WEB.METADATA item will disable this check (backward compatibility with behaviour of MapServer < 8.0)
comment:14 by , 16 months ago
I've pushed a fix for that "Missing required parameter STYLES" error to https://github.com/OSGeo/OSGeoLive-Notebooks/pull/31
comment:15 by , 14 months ago
Can this ticket be closed? As I understand it the CONFIG file is in place and working.
Pull request:
https://github.com/OSGeo/OSGeoLive/pull/358