1. A concise explanation of the problem you’re experiencing.
Hi, I’m quite new to Cesium and mapping in general so please bear with me. I’m trying to load an ImageryProvider using WebMapTileServiceImageryProvider into our Cesium mapping application and I am getting 404’s when requesting tiles. The WMTS loads fine using QGIS.
The ImageServer is at https://maps.brucecounty.on.ca/arcgis/rest/services/public/swoop2015/ImageServer/WMTS/1.0.0/WMTSCapabilities.xml.
I believe the issue is related to the fact that the supported CRS of the image server is EPSG:26917. I think I need to use the GeographicTilingScheme.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
Using the bounds for EPSG:26917 from QGIS:
var epsg_26917_rect = Cesium.Rectangle.fromDegrees(-84, 23.81, -78, 84);
var epsg_26917 = new Cesium.GeographicTilingScheme({
rectangle: epsg_26917_rect,
// numberOfLevelZeroTilesX: ?,
// numberOfLevelZeroTilesY: ?,
// ellipsoid: ?,
});
imageryProvider = new Cesium.WebMapTileServiceImageryProvider({
url: ‘https://maps.brucecounty.on.ca/arcgis/rest/services/public/swoop2015/ImageServer/WMTS’,
layer: ‘swoop2015’,
style: ‘default’,
tileMatrixSetID: ‘default028mm’,
tilingScheme: epsg_26917,
});
``
In the WMTSCapabilities.xml, it says the 0th layer has
84
76
``
so I tried that for numberOfLevelZeroTilesX and numberOfLevelZeroTilesY but that didn’t work. I was able to get values for these that appeared somewhat in the correct general area but the image was very skewed.
Am I supposed to use GRS80 insead of WGS84? How do I define that ellipsoid in Cesium?
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I want to display hi-res local imagery in an internal mapping tool made with Cesium.
4. The Cesium version you’re using, your operating system and browser.
Cesium 1.63, Ubuntu 19.10, Chrome 78.0.3904.97
Thanks