예제 #1
0
 public TileInfo(int column, int row, double resolution, TileSchema tileSchema)
 {
     Width       = 256;
     Height      = 256;
     ZoomLevel   = new ZoomLevel(resolution);
     BoundingBox = GetBoundingBoxByColumnRow(column, row);
 }
예제 #2
0
 protected TileSource(TileSchema tileSchema, ITileCache <byte[]> tileCache, TileDownloader tileDownloader, string id)
     : base(id)
 {
     this.Schema         = tileSchema;
     this.tileCache      = tileCache ?? new MemoryTileCache <byte[]>();
     this.tileDownloader = this.tileDownloader ?? new ImageTileDownloader(tileSchema);
 }
예제 #3
0
 protected TileSource(TileSchema tileSchema, string id)
     : base(id)
 {
     this.tileSchema               = tileSchema;
     this.tileDownloader           = this.tileDownloader ?? new ImageTileDownloader();
     this.tileDownloader.TileCache = new MemoryTileCache <byte[]>();
     this.tileFormat               = TileFormat.Png;
 }
예제 #4
0
        public TileMatrix(double resolution, TileSchema tileSchema, string id)
        {
            this.ZoomLevel  = new ZoomLevel(resolution);
            this.TileSchema = tileSchema;
            this.Id         = id;

            this.TileWidth  = 256;
            this.TileHeight = 256;
        }
예제 #5
0
        public TileInfo(int column, int row, double resolution, TileSchema tileSchema)
        {
            this.tileX = -1;
            this.tileY = -1;

            this.width     = 256;
            this.height    = 256;
            this.zoomLevel = new ZoomLevel(resolution);
            this.Extent    = GetBoundingBoxByColumnRow(column, row);
        }
예제 #6
0
        public TileInfo(BoundingBox boundingBox, TileSchema tileSchema)
        {
            Width       = 256;
            Height      = 256;
            BoundingBox = boundingBox;
            Schema      = tileSchema;

            ZoomLevel = GetZoomLevel();
            InitilizeColumnRowWithBounds();
        }
예제 #7
0
        public TileInfo(BoundingBox extent, TileSchema tileSchema)
        {
            this.tileX = -1;
            this.tileY = -1;

            this.width      = 256;
            this.height     = 256;
            this.Extent     = extent;
            this.TileSchema = tileSchema;

            this.ZoomLevel = GetZoomLevel();
            this.InitilizeColumnRowWithBounds();
        }
예제 #8
0
        protected virtual TileDownloader CreateTileDownloader(TileSchema tileSchema)
        {
            TileDownloader tileDownloader = new ImageTileDownloader(tileSchema);

            return(tileDownloader);
        }
예제 #9
0
 protected TileSource(TileSchema tileSchema, ITileCache <byte[]> tileCache, TileDownloader tileDownloader)
     : this(tileSchema, tileCache, tileDownloader, Utility.CreateUniqueId())
 {
 }
예제 #10
0
 protected TileSource(TileSchema tileSchema, TileDownloader tileDownloaer)
     : this(tileSchema, null, tileDownloaer)
 {
 }
예제 #11
0
 protected TileSource(TileSchema tileSchema)
     : this(tileSchema, null, null)
 {
 }
예제 #12
0
 public TileMatrix(double resolution, TileSchema tileScehma)
     : this(resolution, tileScehma, Utility.CreateUniqueId())
 {
 }
예제 #13
0
 public ImageTileDownloader(TileSchema tileSchema)
 {
     this.tileSchema   = tileSchema;
     this.tileRequests = new Dictionary <TileSource, AsyncTileRequest>();
 }
예제 #14
0
 protected TileSource(TileSchema tileSchema)
     : this(tileSchema, Utility.CreateUniqueId())
 {
 }