getMap的WIDTH和HEIGHT参数

本文阐述了WMS服务中WIDTH和HEIGHT参数的作用,即指定返回地图的尺寸,并讨论了不同请求格式下这些参数的应用方式及限制条件。此外,还介绍了如何处理不同设备输出像素比例的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

7.3.3.8 WIDTH, HEIGHT
The mandatory WIDTH and HEIGHT parameters specify the size in integer pixels of the map to be produced.
The Map CS (6.6.1 and B.2) applies to the map.  WIDTH-1 specifies the maximum value of the i axis in the
Map CS, and HEIGHT-1 specifies the maximum value of the j axis in the Map CS.
If the request is for a picture format, the returned picture, regardless of its MIME type, shall have exactly the
specified width and height in pixels. In the case where the aspect ratio of the BBOX and the ratio width/height
are different, the WMS shall stretch the returned map  so that the resulting pixels could themselves be
rendered in the aspect ratio of the BBOX. In other words, it shall be possible using this definition to request a
map for a device whose output pixels are themselves non-square, or to stretch a map into an image area of a
different aspect ratio.
Map distortions will be introduced if the aspect ratio WIDTH/HEIGHT is not commensurate with X, Y and the
pixel aspect.  Client developers should minimize the  possibility that users will inadvertently request or
unknowingly receive distorted maps.
If a request is for a graphic element format that does not have explicit width and height, the client shall include
the WIDTH and HEIGHT values in the request and a server may use them as helpful information in
constructing the output map.
The optional <MaxWidth> and <MaxHeight> elements in  the service metadata are integers indicating the
maximum width and height values that a client is permitted to include in a single GetMap request.  If either
element is absent the server imposes no limit on the corresponding parameter.
If the WMS server has declared that a Layer has fixed width and height, as described in 7.2.4.7.5, then the
Client shall specify exactly those WIDTH and HEIGHT  values in the GetMap request and the Server may
issue a service exception otherwise.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值