Skip to content

Instantly share code, notes, and snippets.

@macobo
Created March 8, 2020 08:06
Show Gist options
  • Select an option

  • Save macobo/12ea56f85b3c8f718fdfea4b8a0ff190 to your computer and use it in GitHub Desktop.

Select an option

Save macobo/12ea56f85b3c8f718fdfea4b8a0ff190 to your computer and use it in GitHub Desktop.
services:
demo:
wms:
wmts:
tms:
use_grid_names: true
origin: 'nw'
sources:
maaamet_ortofoto:
type: tile
url: http://tiles.maaamet.ee/tm/tms/1.0.0/foto/%(z)s/%(x)s/%(y)s.jpg
grid: ee_grid
maptiler_source:
type: tile
url: http://api.maptiler.com/maps/8d707a24-7972-4603-8e49-9517dc6753d0/%(z)s/%(x)s/%(y)s.png?key=XXXX
grid: webmercator_hq
caches:
maaamet_cache_in:
grids: [ee_grid]
sources: [maaamet_ortofoto]
disable_storage: true
format: image/jpeg
request_format: image/jpeg
maaamet_cache:
grids: [webmercator]
sources: [maaamet_cache_in]
maptiler_cache:
disable_storage: true
sources: [maptiler_source]
grids: [webmercator_hq]
layers:
- name: maaamet_orto
title: Maaamet orto
sources: [maaamet_cache]
- name: maptiler
title: Maptiler
sources: [maptiler_cache]
grids:
ee_grid:
srs: 'EPSG:3301'
bbox: [40500.000000, 5993000.000000, 1064500.000000, 7017000.000000]
bbox_srs: 'EPSG:3301'
# webmercator:
# base: GLOBAL_WEBMERCATOR
webmercator:
srs: "EPSG:3857"
origin: nw
min_res: 156543.03392804097
webmercator_hq:
srs: "EPSG:3857"
origin: nw
min_res: 78271.51696402048
tile_size: [512, 512]
globals:
image:
resampling_method: nearest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment