def QuadTree(self, tx, ty, zoom ):
		
		quadKey = ""
		ty = (2**zoom - 1) - ty
		for i in range(zoom, 0, -1):
			digit = 0
			mask = 1 << (i-1)
			if (tx & mask) != 0:
				digit += 1
			if (ty & mask) != 0:
				digit += 2
			quadKey += str(digit)
			
		return quadKey

#---------------------
Copy a request. The response is not duplicated.
dataset/ETHPy150Open Ecotrust/create-utfgrids/globalmaptiles.py/GlobalMercator.QuadTree--crossover with--dataset/ETHPy150Open tweksteen/burst/burst/http.py/Request.copy