From: Gabriella T. <Gab...@ni...> - 2018-01-07 20:21:48
|
Hi all, I am sending this again as I did not get any replies before Xmas. I am trying to implement a WFS service client in our app, but I can’t figure out how to get a list of available layers from the initial getCapabilities request. Something akin to what one can do for WMS: WebMapServer wms = null; try { wms = new WebMapServer(url); WMSCapabilities capabilities = wms.getCapabilities(); Layer[] layers = WMSUtils.getNamedLayers(capabilities); if (layers == null || layers.length == 0) { return "the server does not provide any layers."; } } catch (Exception e) {} |