mapgis ogc 共享服务使用说明

上传人:第*** 文档编号:32689622 上传时间:2018-02-12 格式:DOC 页数:22 大小:260.50KB
返回 下载 相关 举报
mapgis ogc 共享服务使用说明_第1页
第1页 / 共22页
mapgis ogc 共享服务使用说明_第2页
第2页 / 共22页
mapgis ogc 共享服务使用说明_第3页
第3页 / 共22页
mapgis ogc 共享服务使用说明_第4页
第4页 / 共22页
mapgis ogc 共享服务使用说明_第5页
第5页 / 共22页
点击查看更多>>
资源描述

《mapgis ogc 共享服务使用说明》由会员分享,可在线阅读,更多相关《mapgis ogc 共享服务使用说明(22页珍藏版)》请在金锄头文库上搜索。

1、MapGIS OGC 共享服务使用说明一、引言1、 数据格式需要支持 XML、 GML、KML 和 GeoRSS JSON2、 服务的通信协议需要支持 http Get/POST、SOAP、REST3、 支持的 OGC 标准协议有:WMS WFS WCS WMTS WPS WFS-G体系结构:二、网络地图服务(WMS)1、接口说明1、GetCapabilities 接口版本 接口 参数 Required/ DescriptionOGC共享服务体系WMTSWPSWFS-GWMSV1.0.0V1.1.0V1.1.1V1.3.0WFSV1.0.0V1.1.0WCSV1.1.2V1.0.0V1.1.0

2、V1.0.0V1.0.0V0.9.3OptionalVERSION O Request versionSERVICE=WMS R Service typeREQUEST=GetCapabilities R Request name1.1.01.1.11.3.0GetCapabilitiesUPDATESEQUENCE=string O Sequence number orstring for cache control2、GetMap 接口版本 接口 参数 Required/OptionalDescriptionVERSION=version R Request version REQUEST

3、=GetMap R Request nameLAYERS=layer_list R Comma-separated list of one or more map layers. Optional if SLD parameter is present.STYLES=style_list R Comma-separated list of one rendering style perSRS=namespace:identifierCRS (1.3.0)R Spatial Reference System.BBOX=xmin,ymin,xmax,ymax R Bounding box corn

4、ers (lower left, upper right) inSRS units.WIDTH=output_width R Width in pixels of map picture.HEIGHT=output_height R eight in pixels of map picture.FORMAT=output_format R Output format of map.TRANSPARENT=TRUE|FALSE O Background transparency of map(default=FALSE).BGCOLOR=color_value O Hexadecimal red

5、-green-blue color value for thebackground color (default=0xFFFFFF).EXCEPTIONS=exception_format O The format in which exceptions are to be reportedby the WMS (default=SE_XML).1.1.01.1.1GetMapTIME=time O Time value of layer desired.ELEVATION=elevation O Elevation of layer desired.Other sample dimensio

6、n(s) O Value of other dimensions as appropriate.Vendor-specific parameters O Optional experimental parametersThe following parameters are used only with Web Map Services that support the Styled LayerDescriptor specification10.SLD=styled_layer_descriptor_URL O URL of Styled Layer Descriptor (as defin

7、ed inSLD Specification).WFS=web_feature_service_URL O URL of Web Feature Service providing features tobe symbolized using SLD.3、GetFeatureInfo版本 接口 参数 Required/OptionalDescriptionVERSION=version R Request version.REQUEST=GetFeatureInfo R Request name.R Partial copy of the Map request parameters that

8、 generated the map for which information is desired. (BBOX, C WIDTH, HEIGHT)QUERY_LAYERS=layer_list R. Comma-separated list of one or more layers to bequeriedINFO_FORMAT=output_formatO Return format of feature information (MIME type).FEATURE_COUNT=number O Number of features about which to return in

9、formation(default=1)X=pixel_columnI=pixel_column(1.3.0)R X coordinate in pixels of feature (measured fromupper left corner=0)Y=pixel_rowJ=pixel_row(1.3.0)R upper left corner=0)EXCEPTIONS=exception_formatO The format in which exceptions are to be reported by the WMS (default=application/vnd.ogc.se_xm

10、l).1.1.01.1.1GetFeatureInfoVendor-specific parameters O Optional experimental parameters.WMS 服务支持 SOAP 协议和 HTTP Get 和 post 协议2、SOAP 服务请求示例1)wms getcapability 的请求串:http:/192.168.83.198/MapgisOGCWebService/SOAP/OGCWebSvc.asmx/WMSServer?VERSION=1.3.0&REQUEST=GetCapabilities&SERVICE=WMS&FORMAT=&UPDATESE

11、QUENCE=2) wms getmap 请求串http:/192.168.83.198/MapgisOGCWebService/SOAP/OGCWebSvc.asmx/WMSServer?VERSION=1.3.0&REQUEST=getmap&LAYERS=行政区.WP,中心线,文化教育.WT&STYLES=&CRS=&BBOX=114.1,30.4,114.6,30.8&WIDTH=300&HEIGHT=400&FORMAT=image/gif&TRANSPARENT=true&BGCOLOR=&EXCEPTIONS=&TIME=&ELEVATION=3)wms getfeaturein

12、fo 请求串:http:/192.168.83.198/MapgisOGCWebService/SOAP/OGCWebSvc.asmx/WMSServer?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.3.0&BBOX=114.125704740498,30.4584932093614,114.500788705197,30.7085740673183&WIDTH=1180&HEIGHT=650&QUERY_LAYERS=行政区.WP&X=482&Y=271& INFO_FORMAT=xml&FEATURE_COUNT=203、普通 REST 服务请

13、求示例1)wms getcapability 的请求串:http:/192.168.83.198/MapgisOGCWebService/REST/WMSHandler.ashx?VERSION=1.3.0&REQUEST=GetCapabilities&SERVICE=WMS&FORMAT=&UPDATESEQUENCE=3) wms getmap 请求串http:/192.168.83.198/MapgisOGCWebService/REST/WMSHandler.ashx?VERSION=1.3.0&REQUEST=getmap&LAYERS=行政区.WP,中心线,文化教育.WT&STY

14、LES=&CRS=&BBOX=114.1,30.4,114.6,30.8&WIDTH=300&HEIGHT=400&FORMAT=image/gif&TRANSPARENT=true&BGCOLOR=&EXCEPTIONS=&TIME=&ELEVATION=3)wms getfeatureinfo 请求串:http:/192.168.83.198/MapgisOGCWebService/REST/WMSHandler.ashx?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.3.0&BBOX=114.125704740498,30.4584932093

15、614,114.500788705197,30.7085740673183&WIDTH=1180&HEIGHT=650&QUERY_LAYERS=行政区.WP&X=482&Y=271&INFO_FORMAT=xml&FEATURE_COUNT=20WMS 服务SOAP 协议 HTTP GET/POST 协议WMSHandler.ashxWMS.asmxREST 协议4、基于资源的 REST 服务请求示例以下示例中:TestData 为资源名称,其他参数与 OGC 标准保持一致。1) GetCapabilities 接口http:/localhost/MapgisOGCWebService/RE

16、ST/TestData/WMSServer?VERSION=1.3.0&REQUEST=GetCapabilities&SERVICE=WMS&FORMAT=&UPDATESEQUENCE=2)GetMap 接口http:/localhost/MapgisOGCWebService/REST/TestData/WMSServer?VERSION=1.3.0&REQUEST=getmap&LAYERS=行政区.WP&STYLES=&CRS=&BBOX=&WIDTH=300&HEIGHT=400&FORMAT=image/gif&TRANSPARENT=true&BGCOLOR=&EXCEPTIONS=&TIME=&ELEVATION=3)GetFeatureInfo 接口http:/localhost/MapgisOGCWebService/REST/TestData/WMSServer?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.3.0&BBOX=114.1257047

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 职业教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号