天地图服务与开发

天地图服务与开发

天地图在线地图网址
2021年7月2日,国家地理信息公共服务平台天地图2021版正式启用
传统版地址:https://map.tianditu.gov.cn/2020/
新版地址:https://map.tianditu.gov.cn/

天地图地图服务列表网上图
瓦片地址如下(以矢量底图为例):
原:http://t0.tianditu.com/DataServer?T=vec_c&x=3233&y=673&l=12&tk=你的密钥
新:https://t0.tianditu.gov.cn/DataServer?T=vec_c&x=3233&y=673&l=12&tk=你的密钥

密钥在官网自行申请,申请页面如下:在这里插入图片描述确定服务地址
天地图共有 8 个服务地址,子域名分别从 t0 到 t7,如下列所示:
http://t0.tianditu.gov.cn/DataServer?
http://t1.tianditu.gov.cn/DataServer?
http://t2.tianditu.gov.cn/DataServer?
http://t3.tianditu.gov.cn/DataServer?
http://t4.tianditu.gov.cn/DataServer?
http://t5.tianditu.gov.cn/DataServer?
http://t6.tianditu.gov.cn/DataServer?
http://t7.tianditu.gov.cn/DataServer?

元数据查询
查询WMTS服务要为Tile的WMTSLayer设置参数,如:
http://t0.tianditu.gov.cn/img_c/wmts?request=GetCapabilities&service=wmts
其中http://t0.tianditu.com/vec_c/wmts? 为图层服务器地址

http://t0.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetCapabilities&version=1.0.0&layer=vec&style=default&tilematrixset=c&tilematrix=3&tilerow=2&tilecol=4&format=png&tk=4988d3567eeb1fdb6c79594d6974d128

天地图地图瓦片获取
获取WMTS服务要为Tile的WMTSLayer设置参数,如:
http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={x}&TILECOL={y}&tk=您的密钥
其中http://t0.tianditu.com/vec_c/wmts? 为图层服务器地址

https://t0.tianditu.gov.cn/vec_c/wmts?http://t0.tianditu.com/vec_c/wmts?service=wmts&request=gettile&version=1.0.0&layer=vec&style=default&tilematrixset=c&tilematrix=3&tilerow=2&tilecol=4&format=tiles&tk=4988d3567eeb1fdb6c79594d6974d128

天地图开发
开发资源页:http://lbs.tianditu.gov.cn/
天地图开发指导:http://lbs.tianditu.gov.cn/api/js4.0/guide.html
代码示例:http://lbs.tianditu.gov.cn/api/js4.0/examples.html

openlayers加载天地图数据

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Jennifer33K

美好的一天,有我也有你!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值