Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/k/o/kothic-HEAD/src/twms_fetcher.py   kothic(Download)
 
# from vtiles_backend import QuadTileBackend as DataBackend
from backend.postgis import PostGisBackend as DataBackend
from mapcss import MapCSS
from render import RasterTile
            return None
    bbox = projections.bbox_by_tile(z, x, y, "EPSG:3857")
    db = DataBackend(path="/home/kom/osm/kothic/src/tiles")
    res = RasterTile(256, 256, 1, db, "EPSG:3857")
    res.update_surface(bbox, z, style)
    bb2 = projections.coords_by_tile(z, x + 1.125, y + 1.125, "EPSG:3857")
    bbox = (bb1[0], bb2[1], bb2[0], bb1[1])
    db = DataBackend()
    res = RasterTile(wh, wh, 1, db, "EPSG:3857")
    res.update_surface(bbox, z + 3, style)

src/k/o/kothic-HEAD/src/simple_wms.py   kothic(Download)
 
from debug import debug, Timer
from backend.postgis import PostGisBackend as DataBackend
from mapcss import MapCSS
from twms import bbox, projections
# z = 17
 
db = DataBackend()
# style = Styling()