资源预览内容
第1页 / 共22页
第2页 / 共22页
第3页 / 共22页
第4页 / 共22页
第5页 / 共22页
第6页 / 共22页
第7页 / 共22页
第8页 / 共22页
第9页 / 共22页
第10页 / 共22页
亲,该文档总共22页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
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.0V1.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=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 corners (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-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 dimension(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 defined 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 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 information(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_xml).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=&UPDATESEQUENCE=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 getfeatureinfo 请求串: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 服务请求示例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&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 getfeatureinfo 请求串:http:/192.168.83.198/MapgisOGCWebService/REST/WMSHandler.ashx?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=20WMS 服务SOAP 协议 HTTP GET/POST 协议WMSHandler.ashxWMS.asmxREST 协议4、基于资源的 REST 服务请求示例以下示例中:TestData 为资源名称,其他参数与 OGC 标准保持一致。1) GetCapabilities 接口http:/localhost/MapgisOGCWebService/REST/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
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号