#2409 closed defect (fixed)

MapServer 8.0 CONFIG

Reported by: kalxas Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive16.0
Component: OSGeoLive Keywords: mapserver
Cc: osgeolive@…

Description

MapServer 8.0 debian package is now available in our nightly ppa:

https://launchpad.net/%7Eosgeolive/+archive/ubuntu/nightly/+sourcepub/14396759/+listing-archive-extra

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:2 by kalxas, 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:

comment:3 by kalxas, 22 months ago

Priority: blockercritical

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 sethg, 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:7 by kalxas, 22 months ago

More updates regarding MapServer 8.0 configuration:

https://github.com/OSGeo/OSGeoLive/pull/359

comment:8 by kalxas, 21 months ago

TODO list update:

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 kalxas, 21 months ago

Priority: criticalmajor

comment:10 by sethg, 21 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:11 by darkblueb, 17 months ago

needs confirmation in Beta 0 build

comment:12 by darkblueb, 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 darkblueb, 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 sethg, 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 sethg, 14 months ago

Can this ticket be closed? As I understand it the CONFIG file is in place and working.

comment:16 by kalxas, 13 months ago

Resolution: fixed
Status: newclosed

Closing, thanks!

Note: See TracTickets for help on using tickets.