Exemplo n.º 1
0
        public int CompareTo(object obj)
        {
            TileAddress tileAddress = (TileAddress)obj;
            int         num         = ZoomLevel.CompareTo(tileAddress.ZoomLevel);

            if (num != 0)
            {
                return(num);
            }

            int num2 = TileY.CompareTo(tileAddress.TileY);

            if (num2 != 0)
            {
                return(num2);
            }

            int num3 = TileX.CompareTo(tileAddress.TileX);

            if (num3 != 0)
            {
                return(num3);
            }

            return(0);
        }
Exemplo n.º 2
0
        public override bool Equals(object o2)
        {
            TileAddress tileAddress = (TileAddress)o2;

            return(tileAddress != null && TileX == tileAddress.TileX && TileY == tileAddress.TileY &&
                   ZoomLevel == tileAddress.ZoomLevel);
        }
Exemplo n.º 3
0
		internal SingleSourceUnit(OneLayerBoundApplier applier, TileAddress address, int stage, SingleSourceUnit.NeedThisTileDelegate needThisTile)
		{
			this.applier = applier;
			this.address = address;
			this.stage = stage;
			this.needThisTile = needThisTile;
		}
Exemplo n.º 4
0
 internal SingleSourceUnit(OneLayerBoundApplier applier, TileAddress address, int stage, SingleSourceUnit.NeedThisTileDelegate needThisTile)
 {
     this.applier      = applier;
     this.address      = address;
     this.stage        = stage;
     this.needThisTile = needThisTile;
 }
Exemplo n.º 5
0
        //[CompilerGenerated]
        //private static Predicate<ImageCodecInfo> <>9__CachedAnonymousMethodDelegate1;

        public CompositeTileUnit(Layer layer, TileAddress address, RenderOutputMethod renderOutput, string outputFilename, OutputTileType outputTileType)
        {
            this.layer          = layer;
            this.address        = address;
            this.renderOutput   = renderOutput;
            this.outputFilename = outputFilename;
            this.outputTileType = outputTileType;
        }
Exemplo n.º 6
0
		//[CompilerGenerated]
		//private static Predicate<ImageCodecInfo> <>9__CachedAnonymousMethodDelegate1;
		
        public CompositeTileUnit(Layer layer, TileAddress address, RenderOutputMethod renderOutput, string outputFilename, OutputTileType outputTileType)
		{
			this.layer = layer;
			this.address = address;
			this.renderOutput = renderOutput;
			this.outputFilename = outputFilename;
			this.outputTileType = outputTileType;
		}
Exemplo n.º 7
0
 public override string GetTileFilename(TileAddress ta)
 {
     return(string.Format("z{0}\\y{1}\\x{2}{3}", new object[]
     {
         ta.ZoomLevel,
         ta.TileY,
         ta.TileX,
         this.fileSuffix
     }));
 }
Exemplo n.º 8
0
		public override string GetTileFilename(TileAddress ta)
		{
			return string.Format("z{0}\\y{1}\\x{2}{3}", new object[]
			{
				ta.ZoomLevel,
				ta.TileY,
				ta.TileX,
				this.fileSuffix
			});
		}
Exemplo n.º 9
0
 public static string GetQuadKey(TileAddress ta)
 {
     string text = "";
     for (int i = ta.ZoomLevel; i > 0; i--)
     {
         int num = 0;
         int num2 = 1 << i - 1;
         if ((ta.TileX & num2) != 0)
         {
             num++;
         }
         if ((ta.TileY & num2) != 0)
         {
             num += 2;
         }
         text += num.ToString();
     }
     return text;
 }
Exemplo n.º 10
0
        public static string GetQuadKey(TileAddress ta)
        {
            string text = "";

            for (int i = ta.ZoomLevel; i > 0; i--)
            {
                int num  = 0;
                int num2 = 1 << i - 1;
                if ((ta.TileX & num2) != 0)
                {
                    num++;
                }
                if ((ta.TileY & num2) != 0)
                {
                    num += 2;
                }
                text += num.ToString();
            }
            return(text);
        }
Exemplo n.º 11
0
 public TileAddress(TileAddress proto)
 {
     this.TileX     = proto.TileX;
     this.TileY     = proto.TileY;
     this.ZoomLevel = proto.ZoomLevel;
 }
Exemplo n.º 12
0
		public TileAddress(TileAddress proto)
		{
			this.TileX = proto.TileX;
			this.TileY = proto.TileY;
			this.ZoomLevel = proto.ZoomLevel;
		}
Exemplo n.º 13
0
 public override string GetTileFilename(TileAddress ta)
 {
     return(string.Format("{0}{1}", VENamingScheme.GetQuadKey(ta), this.fileSuffix));
 }
Exemplo n.º 14
0
 public abstract string GetTileFilename(TileAddress ta);
Exemplo n.º 15
0
 public TileAddress(TileAddress proto)
 {
     TileX     = proto.TileX;
     TileY     = proto.TileY;
     ZoomLevel = proto.ZoomLevel;
 }
Exemplo n.º 16
0
 public RangeDescriptor(TileAddress tileAddress)
 {
     this.tileAddress = tileAddress;
 }
Exemplo n.º 17
0
		public RangeDescriptor(TileAddress tileAddress)
		{
			this.tileAddress = tileAddress;
		}
Exemplo n.º 18
0
 public override string GetTileFilename(TileAddress ta)
 {
     return string.Format("{0}{1}", VENamingScheme.GetQuadKey(ta), this.fileSuffix);
 }
Exemplo n.º 19
0
 public string GetRenderPath(TileAddress ta)
 {
     return(this.GetFilePrefix() + "\\" + this.GetTileFilename(ta));
 }
Exemplo n.º 20
0
		public string GetRenderPath(TileAddress ta)
		{
			return this.GetFilePrefix() + "\\" + this.GetTileFilename(ta);
		}
Exemplo n.º 21
0
		public abstract string GetTileFilename(TileAddress ta);