mapfish / mapfish-print

A component of MapFish for printing templated cartographic maps. This module is the Java serverside module.
http://mapfish.github.io/mapfish-print-doc/
BSD 2-Clause "Simplified" License
183 stars 416 forks source link

WMTS REST don't seem to work ... #208

Closed sbrunner closed 9 years ago

sbrunner commented 9 years ago

With a WMTS REST I have the following error messages: ERROR o.m.print.map.tiled.TileLoaderTask - Error making tile request: http://ows.asitvd.ch/http://ows.asitvd.ch/wmts/

The 'http://ows.asitvd.ch/' URL part is duplicated...

The layer definition I have:

{
    "baseURL": "http://ows.asitvd.ch/wmts/",
    "opacity": 1,
    "type": "wmts",
    "layer": "asitvd.fond_couleur",
    "version": "1.0.0",
    "requestEncoding": "REST",
    "style": "default",
    "dimensions": ["DIM1", "ELEVATION"],
    "dimensionParams": {
        "DIM1": "default",
        "ELEVATION": "0"
    },
    "matrixSet": "21781",
    "imageFormat": "image/png",
    "matrices": [{
        "identifier": 0,
        "matrixSize": [38, 25],
        "scaleDenominator": 178571.42857142858,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 1,
        "matrixSize": [94, 63],
        "scaleDenominator": 71428.57142857143,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 2,
        "matrixSize": [188, 125],
        "scaleDenominator": 35714.28571428572,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 3,
        "matrixSize": [375, 250],
        "scaleDenominator": 17857.14285714286,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 4,
        "matrixSize": [750, 500],
        "scaleDenominator": 8928.57142857143,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 5,
        "matrixSize": [938, 625],
        "scaleDenominator": 7142.857142857143,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 6,
        "matrixSize": [1875, 1250],
        "scaleDenominator": 3571.4285714285716,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 7,
        "matrixSize": [3750, 2500],
        "scaleDenominator": 1785.7142857142858,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 8,
        "matrixSize": [7500, 5000],
        "scaleDenominator": 892.8571428571429,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 9,
        "matrixSize": [18750, 12500],
        "scaleDenominator": 357.14285714285717,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }, {
        "identifier": 10,
        "matrixSize": [37500, 25000],
        "scaleDenominator": 178.57142857142858,
        "tileSize": [256, 256],
        "topLeftCorner": [420000, 350000]
    }]
}
tsauerwein commented 9 years ago

With #211 the layer definition would look like this:

{
  "type":"WMTS",
  "baseURL": "http://wmts.geoportail.lu/mapproxy_4_v3/wmts/basemap_global/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png",
  "opacity": "0.5",
  "layer": "basemap_global",
  "requestEncoding":"REST",
  "version":"1.0.0",
  "dimensions":[],
  "dimensionParams":{},
  "matrixSet":"GLOBAL_WEBMERCATOR",
  "matrices":[
    {
    "identifier": "00",
    "matrixSize": [1, 1],
    "scaleDenominator": 559082264.029,
    "tileSize": [256, 256],
    "topLeftCorner": [-20037508.3428,20037508.3428]
    },
    ...
  ],
  "imageFormat": "png"
}
jaykayone commented 9 years ago

OK, waiting tp get a net CLI - release to test. @sbrunner can you inform me when a new cli distributable is available please?