当前位置:网站首页>SuperMap iclient for leaflet loads Gauss Kruger projection three-dimensional zonation CGCS2000 geodetic coordinate system WMTs service
SuperMap iclient for leaflet loads Gauss Kruger projection three-dimensional zonation CGCS2000 geodetic coordinate system WMTs service
2022-07-26 13:27:00 【WindOfMayGIS】
SuperMap IClient for Leaflet Load Gauss Kruger projection three degree zoning CGCS2000 Geodetic coordinate system WMTS service
Where is the difficulty
Leaflet load WMTS service ( sphere ) It's very simple , But loading the projection coordinate system has always been confusing , therefore , Write out the most common situations .
Description of data :
The data used is the image data of Jiangsu area ;
Description of version :
SuperMap IClient for Leaflet 10 i http://iclient.supermap.io/examples/leaflet/examples.html
Increase the band number of Gauss Kruger projection for three-dimensional zoning CGCS2000 Geodetic coordinate system
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>wmts</title>
<link href="leaflet2/css/leaflet.css" rel="stylesheet">
<script type="text/javascript" src="../js/include-web.js"></script>
<script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>
<script type="text/javascript" src="../js/proj4leaflet.js"></script>
<style>
html,body{
height: 100%;
width: 100%;
}
#map{
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="map">
</div>
<script>
var res = [];
for (var i = 0; i < 17; i++) {
res.push(52.91666666666665 / (Math.pow(2, i)));
}
// Proj4js.defs("EPSG:4528","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs");
var map = L.map('map', {
center: [31.79,119.45],
maxZoom: 6,
zoom: 1,
crs: new L.Proj.CRS("EPSG:4528","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs",
{
origin: [40444190.4, 3523180.2],
resolutions: res,
bounds: L.bounds([40444190.4,3515218.5], [40456694.1,3523180.2])
})
});
L.supermap.wmtsLayer("http://192.168.60.45:8099/iserver/services/map-ugcv5-JTclip03gk/wmts100",
{
layer: "JT_clip_03_gk",
style: "default",
tilematrixSet: "Custom_JT_clip_03_gk",
format: "image/png",
requestEncoding: 'REST'
}
).addTo(map);
</script>
</body>
</html>
Do not increase the third degree zoning of the signed Gauss Kruger projection CGCS2000 Geodetic coordinate system
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>wmts</title>
<link href="leaflet2/css/leaflet.css" rel="stylesheet">
<script type="text/javascript" src="../js/include-web.js"></script>
<script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>
<script type="text/javascript" src="../js/proj4leaflet.js"></script>
<style>
html,body{
height: 100%;
width: 100%;
}
#map{
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="map">
</div>
<script>
var res = [];
for (var i = 0; i < 7; i++) {
res.push(52.91666666666665 / (Math.pow(2, i)));
}
// proj4.defs("EPSG:4549","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs");
var map = L.map('map', {
center: [31.75844328613281,119.41046761484614],
maxZoom: 6,
zoom: 0,
crs: new L.Proj.CRS("EPSG:4549","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs",
{
origin: [444190.4,3523180.2],
resolutions: res,
bounds: L.bounds([444190.4,3515218.5], [456694.1,3523180.2]),
dpi:90.7142857142857
})
});
L.supermap.wmtsLayer("http://192.168.60.45:8099/iserver/services/map-ugcv5-JTclip03gkndh/wmts100",
{
layer: "JT_clip_03_gk_ndh",
style: "default",
tilematrixSet: "Custom_JT_clip_03_gk_ndh",
format: "image/png",
requestEncoding: 'REST'
}
).addTo(map);
</script>
</body>
</html>
边栏推荐
- Photoshop(CC2020)未完
- 深度学习3D人体姿态估计国内外研究现状及痛点
- Time complexity analysis of bubble sorting
- Implementation of SAP ABAP daemon
- B+ tree index use (6) leftmost principle -- MySQL from entry to proficiency (18)
- Exploration on cache design optimization of community like business
- Unicode文件解析方法及存在问题
- Leetcode 263. ugly number
- AI theory knowledge map 1 Foundation
- 【花雕动手做】有趣好玩的音乐可视化系列小项目(13)---有机棒立柱灯
猜你喜欢

《Kotlin系列》之MVVM架构封装(kotlin+mvvm)

解决方案丨5G技术助力搭建智慧园区

We were tossed all night by a Kong performance bug

终极套娃 2.0 | 云原生交付的封装

JSON数据传递参数&日期型参数传递

Unicode文件解析方法及存在问题

3D modeling and rendering based on B é zier curve

Hcip day 11 comparison (BGP configuration and release)

panic: Error 1045: Access denied for user ‘root‘@‘117.61.242.215‘ (using password: YES)
![[flower carving hands-on] fun music visualization series small project (12) -- meter tube fast rhythm light](/img/99/6581b8a576e59a13aa4e977e3a1b70.jpg)
[flower carving hands-on] fun music visualization series small project (12) -- meter tube fast rhythm light
随机推荐
Win11+VS2019配置YOLOX
AI-理论-知识图谱1-基础
华为机考 ~ 偏移量实现字符串加密
Solve the problem that the remote host cannot connect to the MySQL database
Huawei computer test ~ offset realizes string encryption
[turn] judge the relationship between two geometries in ArcGIS
Golang端口扫描设计
Square root of leetcode 69. x
Analysis on the current situation and optimization strategy of customer experience management in banking industry
多线程使用不当导致的 OOM
Unity中序列化类为json格式
Hcip day 11 comparison (BGP configuration and release)
带你熟悉云网络的“电话簿”:DNS
Leetcode 1523. count odd numbers within the interval
B+树索引使用(7)匹配列前缀,匹配值范围(十九)
如何构建以客户为中心的产品蓝图:来自首席技术官的建议
(Reprint) creation methods of various points in ArcGIS Engine
MySQL data directory (2) -- table data structure (XXV)
HCIP第十二天笔记整理(BGP联邦、选路规则)
Extra (5) - MySQL execution plan (51)