public static IEnumerable <ITileSource> CreateFromWmscCapabilties(XDocument document) { var wmsCapabilities = new WmsCapabilities(document); return(ParseVendorSpecificCapabilitiesNode( (XElement)wmsCapabilities.Capability.ExtendedCapabilities[XName.Get("VendorSpecificCapabilities")], wmsCapabilities.Capability.Request.GetCapabilities.DCPType[0].Http.Get.OnlineResource)); }
public static List <ITileSource> TileSourceBuilder(Uri uri, WebProxy proxy) { var wmsCapabilities = new WmsCapabilities(uri, proxy); return(ParseVendorSpecificCapabilitiesNode(wmsCapabilities.VendorSpecificCapabilities, wmsCapabilities.GetMapRequests[0].OnlineResource)); }