public bool IsTile(KMLTile imgLevelUp) { int iniX = 2 * imgLevelUp._IdGridX, iniY = 2 * imgLevelUp._IdGridY; return((_IdGridX >= iniX && _IdGridX <= (iniX + 1) && _IdGridY >= iniY && _IdGridY <= (iniY + 1)) ? true : false); }
private void _AddKMLTileEachNotFull(int Level, int idOverview, int idGridX, int idGridY, ref int[] aryParamsSize) { int xoff = idGridX * _sizeTile; int yoff = idGridY * _sizeTile; double[] aryParamsTieRes = new double[4]; // ULTieX, ULTieY, ResX, ResY _CalcParamsImg(idOverview, xoff, yoff, ref aryParamsTieRes); KMLTile item = new KMLTile(); item.SetParamsSize(ref aryParamsTieRes, ref aryParamsSize); item.SetLevelIdGrid(Level, idGridX, idGridY); _lstKMLTile.Add(item); }
public int CompareTo(object obj) { if ((obj is KMLTile) == false) { throw new ArgumentException("Object is not a ImageTileKML"); } KMLTile pC = (KMLTile)obj; // Crescente if (_Level > pC._Level) { return(1); } else if (_Level < pC.Level) { return(-1); } else if (_IdGridX > pC._IdGridX) { return(1); } else if (_IdGridX < pC._IdGridX) { return(-1); } else if (_IdGridY > pC._IdGridY) { return(1); } else if (_IdGridY < pC._IdGridY) { return(-1); } return(0); }