@@ -111,7 +111,7 @@ return 'Unknown'
111111 // Extract from both ows:Title and Title elements for WFS
112112 const owsTitles = Array . from ( wfsXml . getElementsByTagName ( 'ows:Title' ) ) . map ( el => el . textContent )
113113 const plainTitles = Array . from ( wfsXml . getElementsByTagName ( 'Title' ) ) . map ( el => el . textContent )
114- const wfsLayers = [ ...new Set ( [ ...owsTitles , ...plainTitles ] ) ]
114+ const wfsLayers = [ ...new Set ( [ ...owsTitles , ...plainTitles ] ) ]
115115
116116 // Keep WCS as-is
117117 const wcsLayers = Array . from ( wcsXml . getElementsByTagName ( 'ows:Title' ) ) . map ( el => el . textContent )
@@ -207,30 +207,6 @@ export function getSupportedOutputFormats(type, capabilities) {
207207
208208}
209209
210- /**
211- * Determines if the layer is a raster layer
212- */
213- export function isRasterLayer ( type , capabilities , layer ) {
214- if ( type !== 'wcs' ) {
215- return false
216- }
217-
218- const findCoverageForLayer = id => ( layers ) => {
219- id = id . replace ( / : / , '__' )
220- return layers . find ( layer => layer . textContent . trim ( ) === id )
221- }
222-
223- const keywords = pipe (
224- ( ) => [ ...capabilities . querySelectorAll ( 'CoverageId' ) ] ,
225- findCoverageForLayer ( layer ) ,
226- getParentNode ,
227- el => el . getElementsByTagName ( 'ows:Keywords' ) ,
228- getTags ( 'ows:Keyword' ) ,
229- map ( getTagContent ) ,
230- ) ( )
231-
232- return keywords . includes ( 'GeoTIFF' )
233- }
234210async function readWmsCapabilitiesProperties ( capabilities , layerObject ) {
235211/**
236212 * function that reads the wms capabilities response of the workpspace
0 commit comments