def TileId(self, y, x):
if (y < self.bbox.miny or x < self.bbox.minx or
y > self.bbox.maxy or x > self.bbox.maxx):
return -1
#Find the tileid by finding the latitude row and longitude column
return (self.Row(y) * self.ncolumns) + self.Col(x)
# Get the bounding box of the specified tile.
评论列表
文章目录