query.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:api 作者: opentraffic 项目源码 文件源码
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.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号