WMS
Web地圖位置服務 Web地圖服務(Web map service)利用具有地理空間位置信息的數據制作地圖。其中將地圖定義為地理數據可視的表現。這個規范定義了三個操作:GetCapabitities返回服務級元數據,它是對服務信息內容和要求參數的一種描述; GetMap返回一個地圖影像,其地理空間參考和大小參數是明確定義了的;GetFeatureInfo(可選)返回顯示在地圖上的某些特殊要素的信息。 Web 地圖服務(WMS) 能夠根據用戶的請求返回相應的地圖(包括PNG,GIF,JPEG等柵格形式或者是SVG和WEB CGM等矢量形式)。WMS支持網絡協議HTTP,所支持的操作是由URL定義的。 有三個重要操作GetCapabilities,GetMap,GetFeatureinfo。 GetCapabilities返回服務級元數據。 GetMap返回一個地圖影像。 GetFeatureinfo返回顯示在地圖上的某些特殊要素的信息。 還有一些其它操作如DescribeLayer,GetLegendGraphic,GetStyles,SetSytles。 事實上用傳統的觀點來解釋,GetMap獲得的就是在桌面程序中畫在控件上的里的結果,是數據的表現。 GetFeatureInfo更容易理解,它和幾乎所有的桌面程序上都用的Info按鈕功能相同,都是用來獲得屏幕坐標某處的信息,GetFeatureInfo中的參數是屏幕坐標、當前視圖范圍等,在一定程度上也方便了客戶端的編寫。 GetFeatureInfo可以同時返回多個圖層中的要素信息,這一點和ArcGIS Desktop等也都是相同的。WMS還包括一些GetLegend之類的返回圖例信息的請求,也是完全按照桌面既有的標準定義的。
| Format | Syntax | Notes |
| PNG | format=image/png | Default |
| PNG8 | format=image/png8 | Same as PNG, but computes an optimal 256 color (8 bit) palette, so the image size is usually smaller |
| JPEG | format=image/jpeg | ? |
| GIF | format=image/gif | ? |
| TIFF | format=image/tiff | ? |
| TIFF8 | format=image/tiff8 | Same as TIFF, but computes an optimal 256 color (8 bit) palette, so the image size is usually smaller |
| GeoTIFF | format=image/geotiff | Same as TIFF, but includes extra GeoTIFF metadata |
| GeoTIFF8 | format=image/geotiff8 | Same as TIFF, but includes extra GeoTIFF metadata and computes an optimal 256 color (8 bit) palette, so the image size is usually smaller |
| SVG | format=image/svg | ? |
| format=application/pdf | ? | |
| GeoRSS | format=rss | ? |
| KML | format=kml | ? |
| KMZ | format=kmz | ? |
| OpenLayers | format=application/openlayers | Generates an OpenLayers HTML application. |
?
http://localhost:8081/geoserver/nurc/wms service=WMS&version=1.1.0&request=GetMap&layers=nurc:Arc_Sample&styles=&bbox=-183.6,-183.6,183.6,183.6&width=512&height=512&srs=EPSG:4326&format=image/png
可以從geoserver服務器得到一張圖片nurc-Arc_Sample.png
轉載于:https://www.cnblogs.com/cugwx/p/3725333.html
總結
- 上一篇: .htc文件
- 下一篇: How to debug Custom