Esempio n. 1
0
        public TileManager(string tileServerName, string tileServerUrl, WmsServerInfo wmsServerInfo)
        {
            if (tileServerName == null) throw new ArgumentNullException("tileServerName");

            _tileServerUrl = tileServerUrl;
            _tileServerName = tileServerName;
            WmsServerInfo = wmsServerInfo;
            TileCache = new FileCache(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
                "TileCache", _tileServerName), "", new TimeSpan(30, 0, 0, 0));
            _tileSource = InitializeBrutileProvider();
        }
Esempio n. 2
0
        public static WmsTileSource Create(WmsServerInfo serverInfo)
        {
            var href = serverInfo.OnlineResource;
            var layers = new List<string>
                             {
                                 serverInfo.Layer
                             };

            var schema = 
                //new GlobalMercator("image/png");
                new UnProjected();
            var request = new WmscRequest(new Uri(href), schema, layers,
                                          new List<string>(),               // styles
                                          new Dictionary<string, string>(), // custom parameters
                                          serverInfo.Version);
            var provider = new WebTileProvider(request);
            return new WmsTileSource(provider, schema);
        }
Esempio n. 3
0
        public static WmsTileSource Create(WmsServerInfo serverInfo)
        {
            var href   = serverInfo.OnlineResource;
            var layers = new List <string>
            {
                serverInfo.Layer
            };

            var schema =
                //new GlobalMercator("image/png");
                new UnProjected();
            var request = new WmscRequest(new Uri(href), schema, layers,
                                          new List <string>(),               // styles
                                          new Dictionary <string, string>(), // custom parameters
                                          serverInfo.Version);
            var provider = new WebTileProvider(request);

            return(new WmsTileSource(provider, schema));
        }
Esempio n. 4
0
        public static WmsTileSource Create(WmsServerInfo serverInfo)
        {
            var href = serverInfo.OnlineResource;
            var layers = new List<string>
                             {
                                 serverInfo.Layer
                             };

            var schema =
                //new GlobalMercator("image/png");
                //new UnProjected();
                new WmsTileSchema("schema", new Extent(-180, -90, 180, 90), "CRS:84", "image/png", 256, 4.291534423828125e-10, AxisDirection.Normal); 
            var request = new WmscRequest(new Uri(href), schema, layers,
                                          new List<string>(),               // styles
                                          new Dictionary<string, string>(), // custom parameters
                                          serverInfo.Version);
            var provider = new WebTileProvider(request);
            return new WmsTileSource(provider, schema);
        }
 public WMSServerParameters()
 {
     InitializeComponent();
     WmsServerInfo = new WmsServerInfo();
 }
Esempio n. 6
0
 public WMSServerParameters()
 {
     InitializeComponent();
     WmsServerInfo = new WmsServerInfo();
 }