geosolutions-it / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://waffle.io/geosolutions-it/geonode
Other
6 stars 12 forks source link

UNMISS WMTS service to be used as basemap #1216

Closed EddyCatt closed 2 years ago

EddyCatt commented 2 years ago

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.

giohappy commented 2 years ago

@EddyCatt GeoNode version?

giohappy commented 2 years ago

@EddyCatt in breif:

EddyCatt commented 2 years ago

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.

mattiagiupponi commented 2 years ago

@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:

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

image

mattiagiupponi commented 2 years ago

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

mattiagiupponi commented 2 years ago

@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

giohappy commented 2 years ago

@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",
}
EddyCatt commented 2 years ago

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

giohappy commented 2 years ago

Issue moved to geosolutions-it/UNMISS-GeoStory #40 via ZenHub