Пример #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);
        }
Пример #2
0
        public override bool Equals(object o2)
        {
            TileAddress tileAddress = (TileAddress)o2;

            return(tileAddress != null && TileX == tileAddress.TileX && TileY == tileAddress.TileY &&
                   ZoomLevel == tileAddress.ZoomLevel);
        }
Пример #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;
		}
Пример #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;
 }
Пример #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;
        }
Пример #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;
		}
Пример #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
     }));
 }
Пример #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
			});
		}
Пример #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;
 }
Пример #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);
        }
Пример #11
0
 public TileAddress(TileAddress proto)
 {
     this.TileX     = proto.TileX;
     this.TileY     = proto.TileY;
     this.ZoomLevel = proto.ZoomLevel;
 }
Пример #12
0
		public TileAddress(TileAddress proto)
		{
			this.TileX = proto.TileX;
			this.TileY = proto.TileY;
			this.ZoomLevel = proto.ZoomLevel;
		}
Пример #13
0
 public override string GetTileFilename(TileAddress ta)
 {
     return(string.Format("{0}{1}", VENamingScheme.GetQuadKey(ta), this.fileSuffix));
 }
Пример #14
0
 public abstract string GetTileFilename(TileAddress ta);
Пример #15
0
 public TileAddress(TileAddress proto)
 {
     TileX     = proto.TileX;
     TileY     = proto.TileY;
     ZoomLevel = proto.ZoomLevel;
 }
Пример #16
0
 public RangeDescriptor(TileAddress tileAddress)
 {
     this.tileAddress = tileAddress;
 }
Пример #17
0
		public RangeDescriptor(TileAddress tileAddress)
		{
			this.tileAddress = tileAddress;
		}
Пример #18
0
 public override string GetTileFilename(TileAddress ta)
 {
     return string.Format("{0}{1}", VENamingScheme.GetQuadKey(ta), this.fileSuffix);
 }
Пример #19
0
 public string GetRenderPath(TileAddress ta)
 {
     return(this.GetFilePrefix() + "\\" + this.GetTileFilename(ta));
 }
Пример #20
0
		public string GetRenderPath(TileAddress ta)
		{
			return this.GetFilePrefix() + "\\" + this.GetTileFilename(ta);
		}
Пример #21
0
		public abstract string GetTileFilename(TileAddress ta);