geosolutions-it/geonode

UNMISS WMTS service to be used as basemap

Closed this issue · 9 comments

We've received from UN 3 remote service, ArcGIS based, to be consumed as basemaps within GeoNode UNMISS platform.
GeoNode version is 3.2.4

After some tests, we found out that those services are not working on UN GeoNode while they're fine in QGIS.
Below the received errors:
1.
https://dev-ags1.dfs.un.org/arcgis/rest/services/UNMISS_Custom_Basemap/MapServer
GeoNode ArcGIS Rest Service : We were able to connect to services, we've received the resource but we’ve got Timeout error when trying to harvest some layers
2.
https://dev-ags1.dfs.un.org/arcgis/rest/services/UNMISS_Custom_Basemap/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
GeoNode WMTS service: : We’ve got unknown URL address error
3.
https://dev-ags1.dfs.un.org/arcgis/services/UNMISS_Custom_Basemap/MapServer/WMSServer?request=GetCapabilities&service=WMS
GeoNode WMS service: We’ve got unknown URL address error

Services are only working within UN intranet.
To connect with UN intranet:
https://docs.google.com/document/d/1S4ZaOFhIEgS-cupQO7IoR-W6AO0Q0ZcE/edit

We've asked to have the services publicly available, they said they'll provide them in the next days.

@EddyCatt GeoNode version?

@EddyCatt in breif:

  • WMS for basemaps is already supported. It requires a configuration inside DEFAULT_MS2_BACKGROUNDS GeoNode settings.
  • WMTS basemaps require an enhancement that was already in the backlog
  • ArcGIS Mapserver... MapStore can show ArcGIS layers but I don't know if it exposes the settings to configure them as basemaps. @allyoucanmap can you enlighten us on this?

UNMISS remote services are now publicly available and they would like to use the following WMS services as basemap for GeoNode
(https://pro-ags1.dfs.un.org/arcgis/services/UNMISS_Custom_Basemap_CVW/MapServer/WMSServer)

I'd need support to configure it as basemap within DEFAULT_MS2_BACKGROUNDS GeoNode settings.

@EddyCatt @giohappy
Follows the config to be added under the GeoNode settings file:

{
    "type": "wms",
    "title": "UNMISS WMS",
    "format": "image/jpeg",
    "id": "unimiss",
    "name": "unimiss:unimiss",
    "url": "https://pro-ags1.dfs.un.org/arcgis/services/UNMISS_Custom_Basemap_CVW/MapServer/WMSServer",
    "thumbURL": "https://unmiss.unmissions.org/sites/all/themes/unmpk/logo.png",
    "group": "background",
    "visibility": False
},

if is needed as a default background, is needed to:

  • in the configuration change the "Open Street Map" -> visibility from TRUE to FALSE
  • change the above configuration for unimiss -> visibility from FALSE to TRUE

The only issue that I see now is that the background looks empty for every resource:

image

As we saw together, @EddyCatt we need to change the ID value of the configuration ones we will be able to find a working layer

@EddyCatt we were able to load a background with ID 3:
config

{
    "type": "wms",
    "title": "UNMISS LND_Landcover_S",
    "format": "image/jpeg",
    "id": "LND_Landcover_S",
    "name": "3",
    "url": "https://pro-ags1.dfs.un.org/arcgis/services/UNMISS_Custom_Basemap_CVW/MapServer/WMSServer",
    "thumbURL": "https://unmiss.unmissions.org/sites/all/themes/unmpk/logo.png",
    "group": "background",
    "visibility": False
},

The output as a background is the following:
image

@EddyCatt the tile layer configuration is:

{
    "type": "tileprovider",
    "title": "UNMISS Basemap",
    "provider": "custom",
    "name": "",
    "group": "background",
    "visibility": false,
    "url": "[https://pro-ags1.dfs.un.org/arcgis/rest/services/UNMISS_Custom_Basemap_CVW/MapServer/tile/{z}/{y}/{x}](https://pro-ags1.dfs.un.org/arcgis/rest/services/UNMISS_Custom_Basemap_CVW/MapServer/tile/%7Bz%7D/%7By%7D/%7Bx%7D)",
    "thumbURL": "https://unmiss.unmissions.org/sites/all/themes/unmpk/logo.png",
}

UN basemap served as WMTS service has been added as additional choice for the background map in the staging environment (stable version of GeoNode)
This configuration has been approved by UN and it has to be deployed in production environment
UN Basemap has also to be set as default background map instead of OpenStreetMap