zoukankan      html  css  js  c++  java
  • 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  
    PDF 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

  • 相关阅读:
    google浏览器切换成中文
    Python 进阶篇
    Linux 命令
    Linux
    Linux
    Linux
    Linux--shell脚本之文本处理工具
    Linux--shell脚本之正则表达式
    Linux
    Linux
  • 原文地址:https://www.cnblogs.com/cugwx/p/3725333.html
Copyright © 2011-2022 走看看