コード例 #1
0
ファイル: genKml.py プロジェクト: imclab/geocamTiePoint
def getLink(tiles, childIdx):
    zoom, x, y = childIdx
    ctx = {
        'name': '{}/{}/{}'.format(zoom, x, y),
        'kmlUrl': '../../{}/{}/{}.kml'.format(zoom, x, y),
    }
    ctx.update(tileBoundsLonLat(*childIdx))
    return LINK_TEMPLATE.format(**ctx)
コード例 #2
0
ファイル: genKml.py プロジェクト: geocam/geocamTiePoint
def getLink(tiles, childIdx):
    zoom, x, y = childIdx
    ctx = {
        'name': '{}/{}/{}'.format(zoom, x, y),
        'kmlUrl': '../../{}/{}/{}.kml'.format(zoom, x, y),
    }
    ctx.update(tileBoundsLonLat(*childIdx))
    return LINK_TEMPLATE.format(**ctx)
コード例 #3
0
ファイル: genKml.py プロジェクト: imclab/geocamTiePoint
def getTileKml(tiles, idx):
    imgPath = tiles[idx]
    zoom, x, y = idx
    ctx = {
        'name': '{}/{}/{}'.format(zoom, x, y),
        'links': getChildLinks(tiles, idx),
        'drawOrder': zoom,
        'imageUrl': os.path.basename(imgPath),
    }
    ctx.update(tileBoundsLonLat(*idx))
    return TILE_TEMPLATE.format(**ctx)
コード例 #4
0
ファイル: genKml.py プロジェクト: geocam/geocamTiePoint
def getTileKml(tiles, idx):
    imgPath = tiles[idx]
    zoom, x, y = idx
    ctx = {
        'name': '{}/{}/{}'.format(zoom, x, y),
        'links': getChildLinks(tiles, idx),
        'drawOrder': zoom,
        'imageUrl': os.path.basename(imgPath),
    }
    ctx.update(tileBoundsLonLat(*idx))
    return TILE_TEMPLATE.format(**ctx)