public WmsLayerConfiguration createLayerConfig ( WmsLayerInfo layerInfo , String baseUrl , WmsService . WmsVersion version ) { WmsLayerConfiguration layerConfig = new WmsLayerConfiguration ( ) ; layerConfig . setBaseUrl ( baseUrl ) ; layerConfig . setLayers ( layerInfo . getName ( ) ) ; layerConfig . setVersion ( version ) ; return layerConfig ; }
Create a WMS layer configuration object from a LayerInfo object acquired through a WMS GetCapabilities call .