Skip to content

Instantly share code, notes, and snippets.

@jgrocha
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgrocha/840880f80e80e25e293a to your computer and use it in GitHub Desktop.
Save jgrocha/840880f80e80e25e293a to your computer and use it in GitHub Desktop.
MapFish print request using WMTS layer
{
"attributes": {
"map": {
"center": [-26000, 100500],
"dpi": 72,
"layers": [{
"type": "WMTS",
"baseURL": "http://a.geomaster.pt/mapproxy/wmts/osm/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png",
"opacity": 1,
"layer": "osm",
"version": "1.0.0",
"dimensions":[],
"dimensionParams":{},
"requestEncoding": "REST",
"matrixSet": "pt_tm_06",
"imageFormat": "png",
"style": "default",
"matrices": [
{
"identifier": "00",
"scaleDenominator": 1005316.28662,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [4, 8]
},
{
"identifier": "01",
"scaleDenominator": 502658.143311,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [8, 16]
},
{
"identifier": "02",
"scaleDenominator": 251329.071655,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [16, 32]
},
{
"identifier": "03",
"scaleDenominator": 125664.535827,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [32, 64]
},
{
"identifier": "04",
"scaleDenominator": 62832.2679136,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [63, 128]
},
{
"identifier": "05",
"scaleDenominator": 31416.1339569,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [125, 256]
},
{
"identifier": "06",
"scaleDenominator": 15708.0669784,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [250, 512]
},
{
"identifier": "07",
"scaleDenominator": 7854.03348921,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [500, 1024]
},
{
"identifier": "08",
"scaleDenominator": 3927.01674461,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [1000, 2048]
},
{
"identifier": "09",
"scaleDenominator": 1963.5083723,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [1999, 4096]
},
{
"identifier": "10",
"scaleDenominator": 981.75418615,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [3998, 8192]
},
{
"identifier": "11",
"scaleDenominator": 490.877093075,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [7996, 16384]
},
{
"identifier": "12",
"scaleDenominator": 245.438546538,
"topLeftCorner": [-119191.407499, 276083.7674],
"tileSize": [256, 256],
"matrixSize": [15991, 32768]
}
]
}],
"projection": "EPSG:3763",
"rotation": 0,
"scale": 25000
}
},
"layout": "A4 landscape"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment