Open gavinharriss opened 3 years ago
It seems that the matrices
topLeftCorner
x and y values needed reversing in my JSON requests.
So instead of:
"topLeftCorner": [ 10000000.0, -1000000.0 ]
using the following worked:
"topLeftCorner": [ -1000000.0, 10000000.0 ]
I'm not sure if this is an issue with MapFish Print 3 (southern hemisphere vs. northern hemisphere values?) or the capabilities reported by the LINZ service. I suspect it's a bug in MapFish Print 3 as QGIS has no issues consuming the WMTS layer.
Hi @gavinharriss, thanks the detailed report. Regarding what you have described, if no other user has already encountered this and can provide an answer here, please note that the maintainers of MapFish Print would welcome any pull request addressing the issue. Alternatively, you can contact a professional services company to assist you, please see the README of the project for that.
@jwkaltz no problem, the reversing of the topLeftCorner
x & y values is a work-around for me but I figured it was worth sharing the solution in case others encounter the same issue. Unfortunately my Java dev skills are out of date by a decade, but I may have to dust them off as there's a few enhancements I'd like e.g. magnetic north compass based on WMM2020.
Context
Describe the bug
When adding a WMTS layer to the map, no layer imagery is added and logs report success.
The WMTS service is described here: https://data.linz.govt.nz/services;key=60c2f93ec4dc45448ff7d93df524eb75/wmts/1.0.0/layer/50767/WMTSCapabilities.xml
Further details of the layer can be found here, in case of use for context: https://data.linz.govt.nz/layer/50767-nz-topo50-maps/webservices/
I can successfully use the OSM tile equivalent, but need to use the WMTS service to make the EPSG:2193 projection available.
Any ideas what may be going wrong? Bug or noob mistake with json request?
How to reproduce
Report config: https://www.dropbox.com/s/s8jh6ykv3fxg402/A4-landscape.zip?dl=0
Example map tile url to show the baseUrl should be correct: https://tiles-a.data-cdn.linz.govt.nz/services;key=60c2f93ec4dc45448ff7d93df524eb75/tiles/v4/layer=50767,style=auto/EPSG:2193/0/1/1.png
Actual results
No topo layer is showing on the map: https://www.dropbox.com/s/ykp7orayw802i7w/nztopomap-print%20%2821%29.pdf?dl=0
Expected results
Expected similar results to the OSM tile version: https://www.dropbox.com/s/e4txvr4k994tu6k/nztopomap-print%20%2820%29.pdf?dl=0