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) {}

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to