Skip to content

Commit

Permalink
Merge pull request #504 from geoadmin/feat-BGDIINF_SB-3071-url-list-c…
Browse files Browse the repository at this point in the history
…lean-up

BGDIINF_SB-3071: Removed non working external layer provider
  • Loading branch information
ltshb authored Nov 1, 2023
2 parents 484d1c6 + ff1ecbd commit 74c5cf6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 32 deletions.
13 changes: 10 additions & 3 deletions scripts/check-external-layers-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ function setupAxiosRetry() {
}

function compareResultByProvider(a, b) {
if (a['provider'] > b['provider']) {
return compareCaseInsensitive(a['provider'], b['provider'])
}

function compareCaseInsensitive(a, b) {
if (a.toLowerCase() > b.toLowerCase()) {
return 1
} else if (a['provider'] < b['provider']) {
} else if (a.toLowerCase() < b.toLowerCase()) {
return -1
}
return 0
Expand Down Expand Up @@ -197,7 +201,10 @@ async function writeResult(result) {
count: result.invalid_content.length,
result: result.invalid_content.sort(compareResultByProvider),
}),
fs.writeFile(valid_providers_file, JSON.stringify(result.valid_providers.sort(), null, 4)),
fs.writeFile(
valid_providers_file,
JSON.stringify(result.valid_providers.sort(compareCaseInsensitive), null, 4) + '\n'
),
])
}

Expand Down
33 changes: 4 additions & 29 deletions src/modules/infobox/utils/external-layer-providers.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
[
"https://apps.ecmwf.int/wms/?token=public",
"https://bio.discomap.eea.europa.eu/arcgis/services/Ecosystem/Ecosystems/MapServer/WMSServer",
"https://cidportal.jrc.ec.europa.eu/copernicus/services/tile/wmts/1.0.0/WMTSCapabilities.xml",
"https://copernicus.discomap.eea.europa.eu/arcgis/services/Corine/CLC2012_WM/MapServer/WMSServer",
"https://ge.ch/sitgags1/services/VECTOR/SITG_GEOSERVICEDATA/MapServer/WMSServer",
"https://ge.ch/sitgags1/services/VECTOR/SITG_OPENDATA_02/MapServer/WMSServer",
"https://ge.ch/sitgags1/services/VECTOR/SITG_OPENDATA_03/MapServer/WMSServer",
"https://ge.ch/sitgags2/services/RASTER/ORTHOPHOTOS_2016/MapServer/WMSServer",
"https://geo.so.ch/api/wms",
"https://geo.so.ch/api/wmts/1.0.0/WMTSCapabilities.xml",
"https://geodienste.ch/db/av_situationsplan/deu",
"https://geodienste.ch/db/av_situationsplan/fra",
"https://geodienste.ch/db/av_situationsplan/ita",
"https://geodienste.ch/db/av/deu",
"https://geodienste.ch/db/av/fra",
"https://geodienste.ch/db/av/ita",
"https://geodienste.ch/db/av_situationsplan/deu",
"https://geodienste.ch/db/av_situationsplan/fra",
"https://geodienste.ch/db/av_situationsplan/ita",
"https://geodienste.ch/db/avc/deu",
"https://geodienste.ch/db/avc/fra",
"https://geodienste.ch/db/avc/ita",
Expand Down Expand Up @@ -104,24 +100,17 @@
"https://map.geo.tg.ch/proxy/geofy_chsdi3/biomasse-oberflaeche?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/bodenuebersicht-regionen?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/emissionen-stickoxide?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/erdwaerme_erdwaermesonden?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/gefaehrdung_wasser?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/gefahrenhinweiskarte_allgemeine_gefahrengebiete?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/gewaesserschutzkarte-gewaesserschutzbereiche?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/grundwasserkarte-fassung?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/hintergrundplan?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/luftbelastung-stickstoff?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/neophyten-pflanzenart?access_key=YoW2syIQ4xe0ccJA",
"https://map.geo.tg.ch/proxy/geofy_chsdi3/orthofotos?access_key=YoW2syIQ4xe0ccJA",
"https://ogc.glamos.ch/sgi",
"https://osm.omniscale.net/proxy/service",
"https://osmlab.github.io/wmts-osm/WMTSCapabilities.xml",
"https://ows.terrestris.de/osm-gray/service",
"https://ows.terrestris.de/osm/service",
"https://owsproxy.lgl-bw.de/owsproxy/ows/WMS_Maps4BW?request=GetCapabilities&service=WMS&Version=1.3.0",
"https://owsproxy.lgl-bw.de/owsproxy/ows/WMS_Maps4BW",
"https://p20.cosmos-project.ch/sd20alps_map/wmts?request=getcapabilities",
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000001500003/MapServer/WMSServer",
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000004200001/MapServer/WMSServer",
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000013100001/MapServer/WMSServer",
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000013300001/MapServer/WMSServer",
Expand All @@ -130,11 +119,8 @@
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000013600001/MapServer/WMSServer",
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000016900001/MapServer/WMSServer",
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000017400001/MapServer/WMSServer",
"https://rips-gdi.lubw.baden-wuerttemberg.de/arcgis/services/wms/UIS_0100000017900001/MapServer/WMSServer",
"https://service.lisag.ch/wms",
"https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Dark_Gray_Base/MapServer/WMTS/1.0.0/WMTSCapabilities.xml",
"https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Dark_Gray_Reference/MapServer/WMTS/1.0.0/WMTSCapabilities.xml",
"https://services.arcgisonline.com/arcgis/rest/services/ESRI_StreetMap_World_2D/MapServer/WMTS/1.0.0/WMTSCapabilities.xml",
"https://services.arcgisonline.com/arcgis/rest/services/Reference/World_Transportation/MapServer/WMTS/1.0.0/WMTSCapabilities.xml",
"https://services.arcgisonline.com/arcgis/rest/services/World_Shaded_Relief/MapServer/WMTS/1.0.0/WMTSCapabilities.xml",
"https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer/WMTS/1.0.0/WMTSCapabilities.xml",
Expand Down Expand Up @@ -244,10 +230,6 @@
"https://vogis.cnv.at/mapserver/mapserv?map=i_naturschutz_v_wms.map",
"https://vogis.cnv.at/mapserver/mapserv?map=i_relief_r_wms.map",
"https://vogis.cnv.at/mapserver/mapserv?map=i_topographie_r_wms.map",
"https://webdienste.zugmap.ch/basisplan_farbig/service.svc/get",
"https://webdienste.zugmap.ch/basisplan_sw/service.svc/get",
"https://webdienste.zugmap.ch/Landwirtschaft_Naturschutz/service.svc/get",
"https://wms-inspire.geo.admin.ch/?SERVICE=WMS",
"https://wms.geo.admin.ch/?lang=",
"https://wms.geo.ag.ch/",
"https://wms.geo.bs.ch/",
Expand All @@ -259,15 +241,12 @@
"https://wms.geo.gr.ch/bauzonen_graubuenden",
"https://wms.geo.gr.ch/belastetestandorte",
"https://wms.geo.gr.ch/belastetestandorte",
"https://wms.geo.gr.ch/beweidbareflaechen",
"https://wms.geo.gr.ch/beweidbareflaechen",
"https://wms.geo.gr.ch/gewaesserschutz",
"https://wms.geo.gr.ch/gewaesserschutz",
"https://wms.geo.gr.ch/grundwasser",
"https://wms.geo.gr.ch/grundwasser",
"https://wms.geo.gr.ch/historischekarten",
"https://wms.geo.gr.ch/historischekarten",
"https://wms.geo.gr.ch/landwirtschaft",
"https://wms.geo.gr.ch/naturgefahren_erfassungsbereiche",
"https://wms.geo.gr.ch/naturgefahren_erfassungsbereiche",
"https://wms.geo.gr.ch/naturschutz",
Expand Down Expand Up @@ -295,7 +274,6 @@
"https://wms.geo.gr.ch/wildschutzgebiete",
"https://wms.geo.sh.ch/wms?SERVICE=WMS",
"https://wms.geo.ti.ch/service",
"https://wms.geoportal.ch:8080/geoserver/AVAI/wms",
"https://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/DTM_20M.map",
"https://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_100000.map",
"https://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map",
Expand Down Expand Up @@ -340,9 +318,6 @@
"https://www.geoservice.apps.be.ch/geoservice2/services/a42geo/a42geo_planungwms_d_fk/MapServer/WMSServer",
"https://www.geoservice.apps.be.ch/geoservice2/services/a42geo/a42geo_transportwms_d_fk/MapServer/WMSServer",
"https://www.geoservice.apps.be.ch/geoservice2/services/a42geo/a42geo_umweltwms_d_fk/MapServer/WMSServer",
"https://www.mapant.ch/WMTSCapabilities.xml",
"https://www.ogc.vd.ch/public/services/OGC/wmsVD/Mapserver/WMSServer",
"https://www.ogd.stadt-zuerich.ch/mapproxy/wmts/1.0.0/WMTSCapabilities.xml",
"https://www.opensnowmap.org/OSnM_GetCapabilities.xml",
"https://wxs.ign.fr/bvl2gp6za3srtz6yblo9fx8o/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetCapabilities"
"https://www.opensnowmap.org/OSnM_GetCapabilities.xml"
]

0 comments on commit 74c5cf6

Please sign in to comment.