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.
分享到:
相关推荐
地图图像的大小由WIDTH和HEIGHT参数指定,分别代表i轴(通常为东西方向)和j轴(通常为南北方向)的像素数量。图像格式可以是GIF、JPEG、PNG或SVG等。 3. GetFeatureInfo操作允许用户查询地图上的特定位置或图层,...
在WMS的GetMap和GetFeatureInfo请求中,WIDTH参数对应i轴方向的像素值,HEIGHT参数对应j轴方向的map大小。例如,WIDTH为500则表示i轴方向上像素值的最大范围是0到499。同样,HEIGHT为500表示j轴方向上像素值的最大...
此外,还可以利用WMS的GetMap请求参数,如 bbox(边界框)、srs(投影)、width/height(图像尺寸)和format(输出格式)等来定制地图服务。 5. **集成与扩展**:GeoServer支持与其他GIS工具和框架的集成,如...
opts是附加参数,包括设备像素比(devicePixelRatio)、渲染器(renderer)、实例宽度(width)和实例高度(height)。 2. **echarts.connect()函数**:这个函数用于实现多个图表实例之间的联动。它接受一个参数group,可以...
除了上述的`service`、`request`和`version`,还包括`bbox`(地图边界框)、`styles`(图层样式)、`format`(图像格式,如image/png)、`layers`(图层列表)、`width`和`height`(图像尺寸)等参数。例如: ```...
http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&Format=image/png&request=GetMap&width=550&height=250&srs=EPSG:4326&LAYERS=states xsi:schemaLocation=...
http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&Format=image/png&request=GetMap&width=550&height=250&srs=EPSG:4326&LAYERS=states xsi:schemaLocation=...
'tiles': ['http://yourserver/geoserver/wms?service=WMS&request=GetMap&layers=your_layer_name&styles=&width=256&height=256&format=image/png&version=1.1.1'], 'tileSize': 256 }); map.addLayer({ 'id...
REQUEST:"GetMap", //操作名称 VERSION:"1.1.1", //请求服务的版本 SERVICE:"WMS", //服务类型标识符 LAYERS:"3", //用","分隔的多个图层列表 TRANSPARENT:true, //输出图像背景是否透明 STYLES:"default...
new esri.layers.ArcGISDynamicMapServiceLayer("http://wms.tianditu.gov.cn/wms_c/wmsServer?service=WMS&version=1.1.1&request=GetMap&layers=cva,cia&styles=&format=image/jpeg&transparent=true&width=768&...
tiles: ['http://example.com/wms?service=WMS&request=GetMap&version=1.3.0&layers=your_layer_name&styles=&format=image/png&width=256&height=256&srs=EPSG:4326&bbox={bbox-epsg-3857}'], tileSize: 256, ...
请求WMS服务时需要指定参数,如`service`(服务类型,通常是"WMS")、`request`(请求类型,如"GetMap")、`layers`(要显示的图层层名)、`styles`(图层样式)、`bbox`(地理边界框)、`width`和`height`(输出...
在对应的Activity或Fragment中,我们需要初始化MapView,并设置地图的中心点、缩放级别等参数。 百度地图提供了丰富的API接口,可以实现地图的加载、移动、缩放、旋转、倾斜等功能。例如,通过MapController对象...
- **Width/Height**:指定图像尺寸。 - **BBOX**:指定地图的边界框坐标。 ### GML (Geography Markup Language) GML 是一种用于编码地理特征及其属性的XML语言。它是OGC为地理数据定义的一种标准格式。GML 可以...
设置`setMyLocationEnabled(true)`允许显示用户位置,`LocationClientOption`可以用来定制定位参数,例如定位间隔。 当位置信息发生变化时,`BDLocationListener`的`onReceiveLocation()`方法会被调用,我们可以在...
首先,我们需要在AndroidManifest.xml文件中添加必要的权限,包括访问网络、位置服务和写入外部存储权限: ```xml ``` 接下来,注册百度地图SDK并获取API密钥。在百度地图开发者平台创建应用,获取到API Key,...
android:layout_height="match_parent" /> ``` ```java MapView mapView = (MapView) findViewById(R.id.bmapView); mapView.onCreate(savedInstanceState); ``` 接着,我们可以创建一个MyLocationData对象,模拟...
android:layout_height="match_parent" /> ``` ```java MapView mapView = findViewById(R.id.bmapView); mapView.getMap().setMyLocationEnabled(true); BaiduMap baiduMap = mapView.getMap(); baiduMap....
android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="true" /> ``` 在对应的Activity中初始化MapView,并设置地图的显示参数: ```java import ...
android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="true"/> ``` 在对应的Activity类(如MainActivity.java)中,初始化MapView并设置地图的显示属性。需要在...