liuxsdev / qgis-plugin-tianditu

Tianditu plugin for QGIS
https://qgis-plugin-tianditu.liuxs.pro/
GNU General Public License v3.0
30 stars 6 forks source link

可否增加天地图浙江的底图 #1

Closed smlie2020 closed 1 year ago

smlie2020 commented 1 year ago

大佬您好,可不可以增加天地图浙江的一些地图,例如天地图浙江的时相地图,谢谢!

liuxsdev commented 1 year ago

天地图浙江申请token有点麻烦,暂时没法测试😅

liuxsdev commented 1 year ago

申请token被驳回了... 后来发现,可以通过天地图·浙江的预览页面的瓦片分析得到WMTS服务地址 如2021年影像: https://ditu.zjzwfw.gov.cn/services/wmts/imgmap/2021/oss?REQUEST=GetCapabilities 创建WMTS时需要将Referer设置为:https://ditu.zjzwfw.gov.cn/resources-server/rescenter/index.html image

image

这样加载有点钻漏子的感觉,不适宜写进插件里面

liuxsdev commented 1 year ago

已添加,需要将这个文件中的tianditu.yml覆盖掉插件目录中的文件。 tianditu浙江.zip

smlie2020 commented 1 year ago

谢谢大佬,已经添加成功了,非常感谢!

发件人: liuxsdev @.> 发送时间: 2023年5月25日 11:22 收件人: liuxsdev/qgis-plugin-tianditu @.> 抄送: smlie2020 @.>; Author @.> 主题: Re: [liuxsdev/qgis-plugin-tianditu] 可否增加天地图浙江的底图 (Issue #1)

Closed #1https://github.com/liuxsdev/qgis-plugin-tianditu/issues/1 as completed.

― Reply to this email directly, view it on GitHubhttps://github.com/liuxsdev/qgis-plugin-tianditu/issues/1#event-9334784635, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZWVL44OWVQVSFSUNBEJ2TXH3F63ANCNFSM6AAAAAAXWZCDE4. You are receiving this because you authored the thread.Message ID: @.***>

smlie2020 commented 1 year ago

尝试了一下,发现天地图浙江的影像底图的坐标可能存在问题,与天地图影像和谷歌影像都有较大的偏移。

liuxsdev commented 1 year ago

尝试了一下,发现天地图浙江的影像底图的坐标可能存在问题,与天地图影像和谷歌影像都有较大的偏移。

好像是的,坐标偏移了。原因不清楚。 你试试arcgis能不能正确加载

liuxsdev commented 1 year ago

尝试了一下,发现天地图浙江的影像底图的坐标可能存在问题,与天地图影像和谷歌影像都有较大的偏移。

他的能力文档中TileMatrix好像写的不对(我对WMTS标准这方面不太懂),我跟江苏天地图的能力文档比较了一下ScaleDenominator有一点点偏差 我修改ScaleDenominator后,位置就正确了

我做了个WMTS的测试链接:https://drive.liuxs.pro/api/raw/?path=/Other/浙江2021Test.xml image

5555

要正确使用浙江的底图,可能需要自己更改能力文档了🤣

smlie2020 commented 1 year ago

是要修改tianditu.yml这个文档吗?

liuxsdev commented 1 year ago

是要修改tianditu.yml这个文档吗?

得自己部署修改后的能力文档,我尝试直接加载本地xml文件,但qgis加载不出来图

smlie2020 commented 1 year ago

我尝试加载您留下的网址,发现加载失败,看来还是需要申请官方的token


发件人: liuxsdev @.> 发送时间: 2023年5月29日 16:39 收件人: liuxsdev/qgis-plugin-tianditu @.> 抄送: smlie2020 @.>; Author @.> 主题: Re: [liuxsdev/qgis-plugin-tianditu] 可否增加天地图浙江的底图 (Issue #1)

是要修改tianditu.yml这个文档吗?

得自己部署修改后的能力文档,我尝试直接加载本地xml文件,但qgis加载不出来图

― Reply to this email directly, view it on GitHubhttps://github.com/liuxsdev/qgis-plugin-tianditu/issues/1#issuecomment-1566767696, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZWVL7DL5REC7ZO7C56DTDXIROFVANCNFSM6AAAAAAXWZCDE4. You are receiving this because you authored the thread.Message ID: @.***>

liuxsdev commented 1 year ago

我尝试加载您留下的网址,发现加载失败,看来还是需要申请官方的token ____ 发件人: liuxsdev @.> 发送时间: 2023年5月29日 16:39 收件人: liuxsdev/qgis-plugin-tianditu @.> 抄送: smlie2020 @.>; Author @.> 主题: Re: [liuxsdev/qgis-plugin-tianditu] 可否增加天地图浙江的底图 (Issue #1) 是要修改tianditu.yml这个文档吗? 得自己部署修改后的能力文档,我尝试直接加载本地xml文件,但qgis加载不出来图 ― Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZWVL7DL5REC7ZO7C56DTDXIROFVANCNFSM6AAAAAAXWZCDE4. You are receiving this because you authored the thread.Message ID: @.***>

http头文件那里填了吗,我也没用token

smlie2020 commented 1 year ago

填了的,还是加载失败,我一会再试一试


发件人: liuxsdev @.> 发送时间: 2023年5月29日 17:33 收件人: liuxsdev/qgis-plugin-tianditu @.> 抄送: smlie2020 @.>; Author @.> 主题: Re: [liuxsdev/qgis-plugin-tianditu] 可否增加天地图浙江的底图 (Issue #1)

我尝试加载您留下的网址,发现加载失败,看来还是需要申请官方的token … ____ 发件人: liuxsdev @.> 发送时间: 2023年5月29日 16:39 收件人: liuxsdev/qgis-plugin-tianditu @.> 抄送: smlie2020 @.>; Author @.> 主题: Re: [liuxsdev/qgis-plugin-tianditu] 可否增加天地图浙江的底图 (Issue #1https://github.com/liuxsdev/qgis-plugin-tianditu/issues/1) 是要修改tianditu.yml这个文档吗? 得自己部署修改后的能力文档,我尝试直接加载本地xml文件,但qgis加载不出来图 D Reply to this email directly, view it on GitHub<#1 (comment)https://github.com/liuxsdev/qgis-plugin-tianditu/issues/1#issuecomment-1566767696>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZWVL7DL5REC7ZO7C56DTDXIROFVANCNFSM6AAAAAAXWZCDE4. You are receiving this because you authored the thread.Message ID: @.***>

http头文件那里填了吗,我也没用token

― Reply to this email directly, view it on GitHubhttps://github.com/liuxsdev/qgis-plugin-tianditu/issues/1#issuecomment-1566848713, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZWVL5R4FTHLBE6M6AVGXLXIRUODANCNFSM6AAAAAAXWZCDE4. You are receiving this because you authored the thread.Message ID: @.***>