iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.11k stars 300 forks source link

加载geoserver发布的wmts服务titlematrix错误 #2388

Open liangyuan1 opened 1 month ago

liangyuan1 commented 1 month ago

使用wmtssource 加载geoserver 发布的wmts服务,titlemaxtrix :直接返回数字,丢失 3857:类似的字段,如下图所示 image

jailln commented 1 month ago

Can you provide more details about your bug please ?

liangyuan1 commented 1 month ago

Can you provide more details about your bug please ?

实现代码:vue(2.6.14) 具体方法: var orthoSource1 = new itowns.WMTSSource({ url: 'http://192.168.112.29:9090/geoserver2/cite/gwc/service/wmts?', crs: 'EPSG:3857', name: 'cite:csdmaWMTS3857', tileMatrixSet: '3857', format: 'image/png', }) var orthoLayer1 = new itowns.ColorLayer('Ortho1', { source: orthoSource1, }) view.addLayer(orthoLayer1) 结果问题:(1)存在跨域,但是使用oepnlayer和cesium加载不存在,(2)瓦片请求地址不对,主要是TILEMATRIX字段,正确的应该是TILEMATRIX=tileMatrixSet+“:”+tileMatrixSet image

AnthonyGlt commented 1 month ago

Hello, why would we have the tileMatrixSet in the tileMatrix ? This info is already carried in the tileMatrixSet. Do you have a spec for this ? Thank you

ALSO, you must type in English so it makes it easier for everyone involved in this project ( english isn't my primary language neither ;) )

liangyuan1 commented 1 month ago

Hello, why would we have the tileMatrixSet in the tileMatrix ? This info is already carried in the tileMatrixSet. Do you have a spec for this ? Thank you

ALSO, you must type in English so it makes it easier for everyone involved in this project ( english isn't my primary language neither ;) )

This is the rule for publishing services on Geoserver. Geoserver is an open-source map server that is widely used