Example #1
0
        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));
        }
Example #2
0
        public static List <ITileSource> TileSourceBuilder(Uri uri, WebProxy proxy)
        {
            var wmsCapabilities = new WmsCapabilities(uri, proxy);

            return(ParseVendorSpecificCapabilitiesNode(wmsCapabilities.VendorSpecificCapabilities, wmsCapabilities.GetMapRequests[0].OnlineResource));
        }