首页 > 其他分享 >WMTS API——wmts1.0.0.htm

WMTS API——wmts1.0.0.htm

时间:2024-02-21 15:27:06浏览次数:28  
标签:wmts1.0 matrix htm WMTS number coordinate API tile resolution

WMTS,Web地图瓦片服务(Web Map Tile Service)当前版本是1.0.0。WMTS标准定义了一些操作,这些操作允许用户访问瓦片地图。WMTS可能是OGC首个支持RESTful访问的服务标准。

参考:https://baike.baidu.com/item/WMTS/1091367?fr=ge_ala

ArcGIS Server10.1之服务新特性(WMTS1.0.0)

ArcGIS Server10 1正式支持OGC的WMTS1.0.0版本标准,那么如何使用WMTS服务呢? 

一:发布标准的动态服务并且生成缓存,这个过程在这里就不再赘述

二:查看WMTS服务信息,如此一来就意味着只要生成地图缓存服务自动就支持WMTS服务。获取描述信息地址如下:​ ​http://myserver:6080/arcgis/rest/services/servername/MapServer/wmts​

三:获取请求切片

方式一(KVP):​ ​http://192.168.1.229:6080/arcgis/rest/services/instest/MapServer/WMTS?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=instest&STYLE=default&FORMAT=image/png&serviceMode=KVP&TILEMATRIXSET=in&TILEMATRIX=1&TILEROW=153&TILECOL=205​​

方式二(RESTful):​ ​http://192.168.1.229:6080/arcgis/rest/services/instest/MapServer/WMTS/tile/1.0.0/instest/default/nativeTileMatrixSet/1/153/205.png​

此处有几个参数需要说明如下:

LAYER:实际上就是我们发布的服务的服务名称;

serviceMode:WMTS服务的方式包含KVP、RESTful方式

TILEMATRIXSET:实际为地图像素单位,arcgisserver提供了default028mm(屏幕一像素代表0.28毫米)、nativeTileMatrixSet(一英寸96像素),实际经过测试可以随意输入一个不存在的值出图还是正常,应该会有自动默认值。

四:获取切片图片 信息

如果需要在客户端使用,arcgis server FLEX 、JavaScript都提供了相应的WMTS图层来显示地图服务,相关信息可查看对应的API。(发布了以后必须调用相应接口才能显示)

参考:https://blog.51cto.com/u_15127579/4767080

WMTS Overview

SuperMap iServer provides WMTS (Web Map Tile Service), which complies with WMTS implementing specifications, OGC(Open Geospatial Consortium) making. WMTS is a standard of the caching technology that OGC proposes, that is, the cache in the server is cut into a map of certain sizes of tiles, only providing the service of a single tile pre-defined to the client, putting more data processing operations such as layers overlaying and others on the client, thus to ease the pressure of data processing on GIS server, to improve the user experience.

The WMTS services of SuperMap iServer provide the map tiles based on the following aspects:

  1. Tile matrix set
  2. Scale
  3. TopLeftCorner
  4. See

 

SuperMap iServer now supports the following WMTS version:

Tile matrix set

WMTS uses a tile matrix set to show the map split, as shown in Figure 1. A tile is a matrix image containing geographic data, a map to be cut into multiple tiles according to a fixed scale, forming a tile matrix, a tile matrix set composed of one or more tile matrices. Different tile matrix has different resolution, each tile matrix using a tile matrix identifier (generally the number of the tile matrix, the layer with the lowest resolution to be Layer 0, upward increasing successively) to identify.

Figure 1 tile matrix set

In figure 2, each tile matrix has

  1. its tile size as a scale;
  2. its width(TileWidth) and its height(TileHeight) defined by the number of pixels, that is, its tile size. The tile size SuperMap iServer now provides is 256*256;
  3. the upper left corner coordinate of bounding box(TileMatrixminX, TileMatrixmaxY);
  4. the width and the height of a matrix(MatrixWidth, MatrixHeight) defined by a tile as a unit, such as the number of tiles.

Figure 2 Tile matrix

Each tile in the tile matrix is identified by the row number and the column number of each tile(TileRow, TileCol), the row number and the column number being counted from the upper left tile in tile matrix, (0, 0) as the beginning row number and the beginning column number, successively to the right increase and down increase, as shown in Figure 2.

Scale

The server of WMTS only provides the service of limited number of coordinates and scales, in order to improve the interoperability between the client and the server, WMTS proposing a concept of well-known scale set. The well-known scale set is an agreement among the servers, composed of a public coordinate reference system and a group of public well-known scale sets. The definition of well-known scale set is only an agreement mechanism, not necessary in respect of the interoperability in the technology.

Please refer to Coordinate reference system supported by iServer OGC services for more information.

SuperMap iServer WMTS server provides tile data that based on scale collection and refer to wellKnownScaleSets. Please refer to WellknownScale for more contents about universal scale collection.

Scale=1:Ground resolution (a)*Screen resolution (pixel/inch)/0.0254 (m/inch)    

This method can be simplified for: Scale=0.0254/(a*dpi).

The ground resolution (a) is to the actual distance of a pixel,the unit is meter. The screen resolution (dpi) is to the number of pixels every inch screen of the length contains and general default is 96 dpi, namely, each inch has 96 pixels. 0.0254 (m/inch) means the unit conversion between the meter and inch.

For the WMTS 1.0.0 standard service, the resolution is defined by the pixel size (0.28mm=0.00028m). It converts into screen resolution, namely, the pixel number in every inch is: 1inch/(0.00028m/0.0254(m/inch))=0.0254/0.00028≈90.714.

The default screen resolution to output maps of SuperMap iServer is 96, which is defined by electronic map data specification. It is different with that in WMTS 1.0.0. When using local caches (such as MBTiles) to publish WMTS services, it may be different. So SuperMap iServer provides wmts-china interface instance. This interface adopts the map scale defined in electronic map data specification and a common screen resolution 96.

TopLeftCorner

In WMTS, TopLeftCorner is the character sequence that describes the upper-left coordinates of TileMatrixSet; which is made up of X and Y. In the geographic coordinate system, that the longitude is before the latitude does not conform to the international practice. Although there is no standard to stipulate thst the latitude should be in front of longitude, in general, latitude is in front of longitude.

In the WMTS services provided by SuperMap iServer, the TopLeftCorner of geographic coordinate system is "Y X"; The TopLeftCorner of projected coordinate system, custom coordinate and plane-coordinate system is "X Y".

Table 1 TopLeftCorner order of common coordinate system

Coordinate System 4326 3857 4490

(National geodetic coordinate system)

EPSG:0

(Custom coordinate system)

Plane-coordinate System
TopLeftCorner Coordinate Order YX XY YX XY XY

 

See

Please refer to: WMTS relevant specifications of OGC(Open Geospatial Consortium), http://www.opengeospatial.org.

参考:https://heilongjiang.tianditu.gov.cn/iportal/help/html/en/API/WMTS/wmts_introduce.htm

标签:wmts1.0,matrix,htm,WMTS,number,coordinate,API,tile,resolution
From: https://www.cnblogs.com/2008nmj/p/18025261

相关文章

  • 记录一次如何给openai (chatgpt api 调用)充值的经历
    网上有很多通过支付宝充值apple礼品卡的教程,能成功充值chatgpt-plus,我也成功充值了。但这个账号不能在自己的服务中调用api,需要额外充值,本次是记录如何给openaiapi 接口调用充值https://platform.openai.com/account/billing/payment-methods  用fomepay成功充值的经历......
  • 使用html2Canvas截图网页时,网页存在图片报错:Tainted canvases may not be exported
     这是因为图片跨域产生的报错,看有的说法可以把所有图片进行允许跨域配置,但是比较麻烦。html2canvas有参数可以配置是否允许跨域 参数名称类型默认值描述allowTaintbooleanfalseWhethertoallowcross-originimagestotaintthecanvas---允许跨域background......
  • 基于OpenVINO 2022.1 C++ API部署YOLOv7预训练模型
    任务背景作为视觉应用中最常见的任务之一,目标检测一直是各类新模型刷榜的必争之地,其中就以YOLO系列的网络结构最为突出。YOLO的全称是youonlylookonce,指只通过one-stage的方式需要“浏览一次”就可以识别出图中的物体的类别和位置。近期YOLO官方团队又放出新版本——YOLOv7,速......
  • Vue3组合式API之getCurrentInstance详解
    Vue2中,可以通过this来获取当前组件实例; Vue3中,在setup中无法通过this获取组件实例,console.log(this)打印出来的值是undefined。在Vue3中,getCurrentInstance()可以用来获取当前组件实例  vue3官方文档解释let{proxy}=getCurrentInstance(); 在setup中分别打印下面......
  • Apipost forEach循环控制器如何使用
    最近,Apipost对自动化测试进行了优化,新增foreach控制器。这个新功能的引入为自动化测试带来了更高的效率和灵活性。本文将介绍Apipost的foreach控制器,解释其用途和优势,帮助您更好地利用这一功能提升自己的测试工作。什么是foreach控制器?Foreach控制器允许您在测试用例中迭代执行......
  • HTML
    1.2.2渲染引擎(了解)渲染引擎(浏览器内核):浏览器中专门对代码进行解析渲染的部分浏览器出品的公司不同,内在的揎染引也是不同的:浏览器内核备注IETrident1E、猎豹安全、360极速浏览器、百度浏览器FireFoxXGecko火狐浏览器内核SafariWebkit苹果浏览器内核Chrome/OperaB......
  • c#使用webView2 访问本地静态html资源跨域问题 || Cors
    背景在浏览器中访问本地静态资源html网页时,可能会遇到跨域问题如图。 是因为浏览器默认启用了同源策略,即只允许加载与当前网页具有相同源(协议、域名和端口)的内容。WebView2默认情况下启用了浏览器的同源策略,即只允许加载与主机相同源的内容。所以如果我们把静态资源发布到ii......
  • [975] Creating a POSTMAN Api | AWS API Gateway Passing Data to AWS Lambda
    ref:AWSLambdaFunctionURLsref:GuidetoAWSLambdaFunctionURLs1.CreateaLambdaFunctionaws->Services->Lambda2.CreateaFunctionURLConfiguration->FunctionURLThen,theFunctionURLisgeneratedandcanbeseenfromtheup......
  • 测试面试题3-解释什么是RESTful API?
    RESTfulAPI指的是基于REST架构风格设计的应用程序接口。REST(RepresentationalStateTransfer)是一种软件架构风格,它是一种设计风格而非标准。RESTful架构通常基于HTTP协议,提倡使用标准的HTTP方法(GET、POST、PUT、DELETE等)来实现资源的增删改查操作。RESTful架构的主要设......
  • HTML <!DOCTYPE>标记
    原文链接:https://blog.csdn.net/wuxiaopengnihao1/article/details/126521900描述HTML <!DOCTYPE>标记一般放在HTML文档中的第一行。它告诉浏览器要编写文档的HTML版本,以便浏览器知道预期的内容。此标记通常也称为<!DOCTYPE>元素。句法<!DOCTYPE>标记的语法在所使用的HTML或XHTML......