一种wmts瓦片图层服务 多少个图层

GetTile请求返回内容
根据GetCapabilities返回内容设置GetTile各个参数,即可返回地图瓦片,如下图所示:
GetMap请求返回内容
根据GetCapabilities返回内容设置GetMap各个参数,即可返回地图图片,如下图所示:
网络覆盖服务接口
1&&&&服务描述
Web覆盖服务(Web Coverage Service简称WCS)遵循OGC的WCS1.0.0规范。该服务面向空间影像数据,它将包含地理位置值的地理空间数据作为“覆盖(Coverage)”在网上相互交换。
该接口支持以下操作:
GetCapabilities:返回描述服务和数据集的XML文档;
GetCoverage:在GetCapabilities确定什么样的查询可以执行、什么样的数据能够获取之后执行的,它使用通用的覆盖格式返回地理位置的值或属性,目前返回支持tiff格式;
DescribeCoverage:允许用户终端请求由具体的WCS服务器提供的任一覆盖层的完全描述。
2&&&&接口常用参数说明
GetCapabilities
请求的类型,值为GetCapabilities
GetCoverage
请求的类型,值为GetCoverage
服务版本号,支持1.0.0
空间参考类型,值可以为EPSG:4490
请求的图层名字
请求的图层范围,格式为最小x,最小y,最大x,最大y
返回图片的宽度,单位为像素
返回图片的高度,单位为像素
返回图片的格式,目前仅支持geotiff
服务类型,值必须为WCS
DescribeCoverage
请求的类型,值必须为DescribeCoverage
请求的图层名字
3&&&&服务参数设置示例
3.1&&服务发布
WCS发布支持ArcGIS的mxd文件,通过mxd文件配置需发布的栅格要素图层(影像、地形等)及可视化样式。服务发布时选择对应数据的.mxd文件。
3.2&&服务测试
GetCapabilities请求返回内容
&WCS_Capabilities xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengeospatial.net/wcs/1.0.0/wcsCapabilities.xsd" version="1.0.0"&
&name&wcs&/name&
&label&wcs&/label&
&responsibleParty&
&organisationName/&
&contactInfo&
&address/&
&onlineResource xlink:href=""/&
&/contactInfo&
&/responsibleParty&
&fees&None&/fees&
&accessConstraints&NONE&/accessConstraints&
&/Service&
&Capability&
&GetCapabilities&
&OnlineResource xlink:type="simple" xlink:href=":88/ZJDEM/wcs.asmx/wcs?"/&
&/DCPType&
&/GetCapabilities&
&DescribeCoverage&
&OnlineResource xlink:type="simple" xlink:href=":88/ZJDEM/wcs.asmx/wcs?"/&
&/DCPType&
&/DescribeCoverage&
&GetCoverage&
&OnlineResource xlink:type="simple" xlink:href=":88/ZJDEM/wcs.asmx/wcs?"/&
&/DCPType&
&/GetCoverage&
&/Request&
&Exception&
&Format&application/vnd.ogc.se_xml&/Format&
&/Exception&
&/Capability&
&ContentMetadata&
&CoverageOfferingBrief&
&Name&50mdem.img&/Name&
&Title&50mdem.img&/Title&
&lonLatEnvelope srsName="WGS84(DD)"&
&gml:pos dimension="2"&118. 27.3&/gml:pos&
&gml:pos dimension="2"&122. 31.4&/gml:pos&
&/lonLatEnvelope&
&/CoverageOfferingBrief&
&CoverageOfferingBrief&
&Name&hs50.img&/Name&
&Title&hs50.img&/Title&
&lonLatEnvelope srsName="WGS84(DD)"&
&gml:pos dimension="2"&118. 27.1&/gml:pos&
&gml:pos dimension="2"&122. 31.8&/gml:pos&
&/lonLatEnvelope&
&/CoverageOfferingBrief&
&/ContentMetadata&
&/WCS_Capabilities&
DescribeCoverage请求返回内容
&CoverageDescription xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengeospatial.net/wcs/1.0.0/describeCoverage.xsd" version="1.0.0"&
&CoverageOffering&
&name&50mdem.img&/name&
&label&50mdem.img&/label&
&lonLatEnvelope srsName="WGS84(DD)"&
&gml:pos dimension="2"&118. 27.3&/gml:pos&
&gml:pos dimension="2"&122. 31.4&/gml:pos&
&/lonLatEnvelope&
&domainSet&
&spatialDomain&
&gml:Envelope srsName="EPSG:4490"&
&gml:pos dimension="2"&118. 27.3&/gml:pos&
&gml:pos dimension="2"&122. 31.4&/gml:pos&
&/gml:Envelope&
&gml:RectifiedGrid dimension="2"&
&gml:limits&
&gml:GridEnvelope&
&gml:low&0 0&/gml:low&
&gml:high&&/gml:high&
&/gml:GridEnvelope&
&/gml:limits&
&gml:axisName&x&/gml:axisName&
&gml:axisName&y&/gml:axisName&
&gml:origin&
&gml:pos&118. 31.4&/gml:pos&
&/gml:origin&
&gml:offsetVector&0.&/gml:offsetVector&
&gml:offsetVector&0 -0.862638&/gml:offsetVector&
&/gml:RectifiedGrid&
&/spatialDomain&
&/domainSet&
&rangeSet&
&RangeSet&
&name&RangeSet_50mdem.img&/name&
&label&50mdem.img RangeSet&/label&
&axisDescription&
&AxisDescription&
&name&Band&/name&
&label&Band Numbers&/label&
&singleValue&1&/singleValue&
&/AxisDescription&
&/axisDescription&
&nullValues&
&singleValue&-3.&/singleValue&
&/nullValues&
&/RangeSet&
&/rangeSet&
&supportedCRSs&
&requestResponseCRSs&EPSG:4490&/requestResponseCRSs&
&nativeCRSs&EPSG:4490&/nativeCRSs&
&/supportedCRSs&
&supportedFormats nativeFormat="GeoTIFF"&
&formats&GeoTIFF&/formats&
&formats&JPEG&/formats&
&formats&PNG&/formats&
&/supportedFormats&
&/CoverageOffering&
&/CoverageDescription&
GetCoverage请求返回内容
根据GetCapabilities及DescribeCoverage返回内容设置GetCoverage各个参数,即可返回影像覆盖,如下图所示:
网络要素服务接口
1&&&&服务描述
Web Feature Service(网络要素服务),简称WFS。由开放地理信息联盟(Open GeoSpatial Consortium,OGC)指定,采用HTTP协议,通过指定的参数返回相应的要素信息。
该接口支持以下操作:
GetCapabilities:获取服务的要素类及支持的操作,即服务元数据;
DescribeFeatureType:获取要素的描述信息,即要素元数据;
GetFeature:获取要素信息。
2&&&&接口常用参数说明
GetCapabilities
服务版本号,支持1.0.0
值为“WFS”
值为“GetCapabilities”
DescribeFeatureType
版本号,支持“1.1.0”
值为“DescribeFeatureType”
图层列表,以“,”分割
OUTPUTFORMAT
支持“text/xml”
GetFeature
版本号,支持“1.1.0”
值为“GetFeature”
图层列表,以“,”分割
OUTPUTFORMAT
支持“text/xml”
请求的范围
PROPERTYNAME
图层的属性列表,以“,”分割
MAXFEATURES
请求的最大要素记录数
RESULTTYPE
值为“results”
3&&&&服务参数设置示例
3.1&&服务发布
WFS发布支持ArcGIS的shp、gdb文件,服务发布需要选择对应数据的shp或gdb文件,并支持发布多个图层。
3.2&&服务测试
GetCapabilities请求返回内容
&WFS_Capabilities version="1.1.0" xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/gml.xsd http://www.opengis.net/ogc http://schemas.opengis.net/filter/1.1.0/filter.xsd http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsAll.xsd http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"&
&ows:ServiceIdentification&
&ows:Title/&
&ows:Abstract/&
&ows:Keywords&
&ows:Keyword/&
&ows:Keyword/&
&/ows:Keywords&
&ows:ServiceType&WFS&/ows:ServiceType&
&ows:ServiceTypeVersion&1.1.0&/ows:ServiceTypeVersion&
&ows:Fees/&
&ows:AccessConstraints/&
&/ows:ServiceIdentification&
&ows:ServiceProvider&
&ows:ProviderName/&
&ows:ServiceContact&
&ows:IndividualName/&
&ows:PositionName/&
&ows:ContactInfo&
&ows:Phone&
&ows:Voice/&
&ows:Facsimile/&
&/ows:Phone&
&ows:Address&
&ows:DeliveryPoint/&
&ows:City/&
&ows:AdministrativeArea/&
&ows:PostalCode/&
&ows:Country/&
&ows:ElectronicMailAddress/&
&/ows:Address&
&ows:OnlineResource xlink:href=""/&
&ows:HoursOfService/&
&ows:ContactInstructions/&
&/ows:ContactInfo&
&/ows:ServiceContact&
&/ows:ServiceProvider&
&ows:OperationsMetadata&
&ows:Operation name="GetCapabilities"&
&ows:HTTP&
&ows:Get xlink:href=":88/ZJGN_WFS/wfs.asmx/wfs?"/&
&ows:Post xlink:href=":88/ZJGN_WFS/wfs.asmx/wfs?"/&
&/ows:HTTP&
&/ows:DCP&
&ows:Parameter name="AcceptVersions"&
&ows:Value&1.1.0&/ows:Value&
&/ows:Parameter&
&ows:Parameter name="AcceptFormats"&
&ows:Value&text/xml&/ows:Value&
&/ows:Parameter&
&/ows:Operation&
&ows:Operation name="DescribeFeatureType"&
&ows:HTTP&
&ows:Get xlink:href=":88/ZJGN_WFS/wfs.asmx/wfs?"/&
&ows:Post xlink:href=":88/ZJGN_WFS/wfs.asmx/wfs?"/&
&/ows:HTTP&
&/ows:DCP&
&ows:Parameter name="outputFormat"&
&ows:Value&text/ subType=gml/3.1.1/profiles/gmlsf/1.0.0/0&/ows:Value&
&/ows:Parameter&
&/ows:Operation&
&ows:Operation name="GetFeature"&
&ows:HTTP&
&ows:Get xlink:href=":88/ZJGN_WFS/wfs.asmx/wfs?"/&
&ows:Post xlink:href=":88/ZJGN_WFS/wfs.asmx/wfs?"/&
&/ows:HTTP&
&/ows:DCP&
&ows:Parameter name="resultType"&
&ows:Value&results&/ows:Value&
&ows:Value&hits&/ows:Value&
&/ows:Parameter&
&ows:Parameter name="outputFormat"&
&ows:Value&text/ subType=gml/3.1.1/profiles/gmlsf/1.0.0/0&/ows:Value&
&/ows:Parameter&
&/ows:Operation&
&/ows:OperationsMetadata&
&FeatureTypeList&
&Operations&
&/Operations&
&FeatureType&
&Name&GPLNPT330000&/Name&
&Title&GPLNPT330000&/Title&
&DefaultSRS&EPSG:4490&/DefaultSRS&
&OutputFormats&
&Format&text/ subType=gml/3.1.1/profiles/gmlsf/1.0.0/0&/Format&
&/OutputFormats&
&ows:WGS84BoundingBox&
&ows:LowerCorner&117. 26.1&/ows:LowerCorner&
&ows:UpperCorner&123. 31.1&/ows:UpperCorner&
&/ows:WGS84BoundingBox&
&/FeatureType&
&/FeatureTypeList&
&ogc:Filter_Capabilities&
&ogc:Spatial_Capabilities&
&ogc:GeometryOperands&
&ogc:GeometryOperand&gml:Envelope&/ogc:GeometryOperand&
&ogc:GeometryOperand&gml:Point&/ogc:GeometryOperand&
&ogc:GeometryOperand&gml:Polygon&/ogc:GeometryOperand&
&ogc:GeometryOperand&gml:LineString&/ogc:GeometryOperand&
&/ogc:GeometryOperands&
&ogc:SpatialOperators&
&ogc:SpatialOperator name="BBOX"/&
&ogc:SpatialOperator name="Equals"/&
&ogc:SpatialOperator name="Disjoint"/&
&ogc:SpatialOperator name="Intersects"/&
&ogc:SpatialOperator name="Crosses"/&
&ogc:SpatialOperator name="Touches"/&
&ogc:SpatialOperator name="Within"/&
&ogc:SpatialOperator name="Contains"/&
&ogc:SpatialOperator name="Overlaps"/&
&/ogc:SpatialOperators&
&/ogc:Spatial_Capabilities&
&ogc:Scalar_Capabilities&
&ogc:LogicalOperators/&
&ogc:ComparisonOperators&
&ogc:ComparisonOperator&EqualTo&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&NotEqualTo&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&LessThan&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&GreaterThan&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&LessThanEqualTo&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&GreaterThanEqualTo&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&Like&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&Between&/ogc:ComparisonOperator&
&ogc:ComparisonOperator&NullCheck&/ogc:ComparisonOperator&
&/ogc:ComparisonOperators&
&/ogc:Scalar_Capabilities&
&ogc:Id_Capabilities&
&ogc:EID/&
&ogc:FID/&
&/ogc:Id_Capabilities&
&/ogc:Filter_Capabilities&
&/WFS_Capabilities&
DescribeFeatureType请求返回内容
&schema targetNamespace=":88/ZJGN_WFS/wfs.asmx/wfs" elementFormDefault="qualified"&
&import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/&
&element substitutionGroup="gml:_Feature" type="GPLNPT330000_Type" name="GPLNPT330000"/&
&complexType name="GPLNPT330000_Type"&
&complexContent&
&extension base="gml:AbstractFeatureType"&
&sequence&
&element name="FID" maxOccurs="1" minOccurs="0" type="integer"/&
&element name="Shape" maxOccurs="1" minOccurs="0" type="gml:PointPropertyType"/&
&element name="FCODE" maxOccurs="1" minOccurs="0" type="string"/&
&element name="EntiID" maxOccurs="1" minOccurs="0" type="string"/&
&element name="PNOID" maxOccurs="1" minOccurs="0" type="string"/&
&element name="pinyin" maxOccurs="1" minOccurs="0" type="string"/&
&element name="NAME" maxOccurs="1" minOccurs="0" type="string"/&
&element name="fullnamepi" maxOccurs="1" minOccurs="0" type="string"/&
&element name="ADDNAME" maxOccurs="1" minOccurs="0" type="string"/&
&element name="ADDCODE" maxOccurs="1" minOccurs="0" type="string"/&
&element name="CLASID" maxOccurs="1" minOccurs="0" type="string"/&
&element name="ABBREV" maxOccurs="1" minOccurs="0" type="string"/&
&element name="POINT_Z" maxOccurs="1" minOccurs="0" type="double"/&
&element name="POINT_M" maxOccurs="1" minOccurs="0" type="double"/&
&element name="LON" maxOccurs="1" minOccurs="0" type="double"/&
&element name="LAT" maxOccurs="1" minOccurs="0" type="double"/&
&/sequence&
&/extension&
&/complexContent&
&/complexType&
GetFeature请求返回内容
根据GetCapabilities及DescribeFeatureType返回内容设置GetFeature各个参数,得到返回内容:
&wfs:FeatureCollection xsi:schemaLocation=":88/ZJGN_WFS/wfs.asmx/wfs :88/ZJGN_WFS/wfs.asmx/wfs?request=DescribeFeatureType%26version=1.1.0%26typename=GPLNPTservice=wfs http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"&
&gml:boundedBy&
&gml:Envelope srsName="EPSG:4490"&
&gml:lowerCorner&117. 26.1&/gml:lowerCorner&
&gml:upperCorner&123. 31.1&/gml:upperCorner&
&/gml:Envelope&
&/gml:boundedBy&
&gml:featureMember&
&GPLNPT330000 fid="1"&
&FID&1&/FID&
&gml:Point srsName="EPSG:4490"&
&gml:pos srsDimensions="2"&121. 28.&/gml:pos&
&/gml:Point&
&FCODE&&/FCODE&
&EntiID& &/EntiID&
&PNOID&-&/PNOID&
&pinyin&x401&/pinyin&
&NAME&X401&/NAME&
&fullnamepi&zhejiangshengtaizhoushiyuhuanxianx401&/fullnamepi&
&ADDNAME&浙江省台州市玉环县X401&/ADDNAME&
&ADDCODE&&/ADDCODE&
&CLASID&2321&/CLASID&
&ABBREV& &/ABBREV&
&POINT_Z&0&/POINT_Z&
&POINT_M&1&/POINT_M&
&LON&121.&/LON&
&LAT&28.&/LAT&
&/GPLNPT330000&
&/gml:featureMember&
&/wfs:FeatureCollection&
网络要素名录服务接口
1&&&&服务描述
Web Feature for Gazetteer Service(网络要素名录服务),简称WFS-G。由开放地理信息联盟(Open GeoSpatial Consortium,OGC)指定,采用HTTP协议,通过指定的参数返回相应的要素名录信息。该服务与WFS支持的操作相同。该服务主要用于地名地址数据的查询检索,该服务除支持常规图层列表外,还支持ISO19112:SI_Gazetteer类型。
该接口支持以下操作:
GetCapabilities:获取服务的要素类及支持的操作,即服务元数据;
DescribeFeatureType:获取要素的描述信息,即要素元数据;
GetFeature:获取要素信息。
2&&&&接口常用参数说明
GetCapabilities
服务版本号,支持1.0.0
值为“WFS”
值为“GetCapabilities”
DescribeFeatureType
版本号,支持“1.1.0”
值为“DescribeFeatureType”
图层列表,以“,”分割
OUTPUTFORMAT
支持“text/xml”
GetFeature
版本号,支持“1.1.0”
值为“GetFeature”
图层列表,以“,”分割
OUTPUTFORMAT
支持“text/xml”
请求的范围
PROPERTYNAME
图层的属性列表,以“,”分割
MAXFEATURES
请求的最大要素记录数
RESULTTYPE
值为“results”
3&&&&服务参数设置示例
3.1&&服务发布
WFS-G发布支持Access、MySQL、Oracle数据库,服务发布需要选择对应数据库文件。
3.2&&服务测试
GetCapabilities请求返回内容
&WFS_Capabilities version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net//wfs/1.0.0/WFS-capabilities.xsd"&
&Abstract/&
&KeywordList/&
&OnlineResource/&
&/Service&
&Capability&
&GetCapabilities&
&Get onlineResource=":88/ZJGN/wfsg.asmx/wfs?"/&
&/DCPType&
&/GetCapabilities&
&GetFeature&
&ResultFormat&
&/ResultFormat&
&Get onlineResource=":88/ZJGN/wfsg.asmx/wfs?"/&
&/DCPType&
&/GetFeature&
&DescribeFeatureType&
&SchemaDescriptionLanguage&
&XMLSCHEMA/&
&/SchemaDescriptionLanguage&
&Get onlineResource=":88/ZJGN/wfsg.asmx/wfs?"/&
&/DCPType&
&/DescribeFeatureType&
&/Request&
&VendorSpecificCapabilities/&
&/Capability&
&FeatureTypeList&
&Operations&
&/Operations&
&FeatureType&
&Name&iso19112:SI_Gazetteer&/Name&
&Title&iso19112:SI_Gazetteer&/Title&
&SRS&EPSG:4490&/SRS&
&LatLongBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/&
&/FeatureType&
&FeatureType&
&Name&gplnpt330000_t_pn&/Name&
&Title&gplnpt330000_t_pn&/Title&
&Abstract&gplnpt330000_t_pn&/Abstract&
&Keywords&POI&/Keywords&
&SRS&EPSG:4490&/SRS&
&LatLongBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/&
&/FeatureType&
&/FeatureTypeList&
&ogc:Filter_Capabilities&
&ogc:Spatial_Capabilities&
&ogc:Spatial_Operators&
&ogc:BBOX/&
&ogc:DWithin/&
&ogc:Within/&
&/ogc:Spatial_Operators&
&/ogc:Spatial_Capabilities&
&ogc:Scalar_Capabilities&
&ogc:Logical_Operators&
&ogc:AND/&
&ogc:NOT/&
&/ogc:Logical_Operators&
&ogc:Comparison_Operators&
&ogc:PropertyIsEqualTo/&
&ogc:PropertyIsNotEqualTo/&
&ogc:PropertyIsLike/&
&ogc:PropertyIsLessThan/&
&ogc:PropertyIsLessThanOrEqualTo/&
&ogc:PropertyIsGreaterThan/&
&ogc:PropertyIsGreaterThanOrEqualTo/&
&ogc:PropertyIsBetween/&
&/ogc:Comparison_Operators&
&/ogc:Scalar_Capabilities&
&/ogc:Filter_Capabilities&
&/WFS_Capabilities&
DescribeFeatureType请求返回内容
&schema targetNamespace="http://www.opengis.net/iso19112" elementFormDefault="qualified" version="1.0.0"&
&import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/&
&element name="gplnpt330000_t_pn" type="iso19112:POI_Type" substitutionGroup="gml:_Feature"/&
&complexType name="iso19112:POI_Type"&
&complexContent&
&extension base="gml:AbstractFeatureType"&
&sequence&
&element name="oid" type="int" minOccurs="0" maxOccurs="1"/&
&element name="domainname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="nlevel" type="double" minOccurs="0" maxOccurs="1"/&
&element name="standardname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="gbcode" type="string" minOccurs="0" maxOccurs="1"/&
&element name="name" type="string" minOccurs="0" maxOccurs="1"/&
&element name="addname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="addcode" type="string" minOccurs="0" maxOccurs="1"/&
&element name="clasid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="lon" type="double" minOccurs="0" maxOccurs="1"/&
&element name="lat" type="double" minOccurs="0" maxOccurs="1"/&
&element name="pnoid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="entiid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="fcode" type="string" minOccurs="0" maxOccurs="1"/&
&/sequence&
&/extension&
&/complexContent&
&/complexType&
&element name="SI_Gazetteer" type="iso19112:SI_GazetteerType" substitutionGroup="gml:_Feature"/&
&complexType name="SI_GazetteerType"&
&complexContent&
&extension base="gml:AbstractFeatureType"&
&sequence&
&element name="oid" type="int" minOccurs="0" maxOccurs="1"/&
&element name="domainname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="nlevel" type="double" minOccurs="0" maxOccurs="1"/&
&element name="standardname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="gbcode" type="string" minOccurs="0" maxOccurs="1"/&
&element name="name" type="string" minOccurs="0" maxOccurs="1"/&
&element name="addname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="addcode" type="string" minOccurs="0" maxOccurs="1"/&
&element name="clasid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="lon" type="double" minOccurs="0" maxOccurs="1"/&
&element name="lat" type="double" minOccurs="0" maxOccurs="1"/&
&element name="pnoid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="entiid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="fcode" type="string" minOccurs="0" maxOccurs="1"/&
&/sequence&
&/extension&
&/complexContent&
&/complexType&
&element name="SI_LocationType" type="iso19112:SI_LocationTypeType" substitutionGroup="gml:_Feature"/&
&complexType name="SI_LocationTypeType"&
&complexContent&
&extension base="gml:AbstractFeatureType"&
&sequence&
&element name="oid" type="int" minOccurs="0" maxOccurs="1"/&
&element name="domainname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="nlevel" type="double" minOccurs="0" maxOccurs="1"/&
&element name="standardname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="gbcode" type="string" minOccurs="0" maxOccurs="1"/&
&element name="name" type="string" minOccurs="0" maxOccurs="1"/&
&element name="addname" type="string" minOccurs="0" maxOccurs="1"/&
&element name="addcode" type="string" minOccurs="0" maxOccurs="1"/&
&element name="clasid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="lon" type="double" minOccurs="0" maxOccurs="1"/&
&element name="lat" type="double" minOccurs="0" maxOccurs="1"/&
&element name="pnoid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="entiid" type="string" minOccurs="0" maxOccurs="1"/&
&element name="fcode" type="string" minOccurs="0" maxOccurs="1"/&
&/sequence&
&/extension&
&/complexContent&
&/complexType&
GetFeature请求返回内容
根据GetCapabilities及DescribeFeatureType返回内容设置GetFeature各个参数,得到返回内容:
&wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs WFS_Basic.xsd .cn/geoglobe describe.xsd"&
&gml:boundedBy&
&gml:coordinates&121....210822&/gml:coordinates&
&/gml:Box&
&/gml:boundedBy&
&gml:featureMember&
&gplnpt330000_t_pn&
&oid&1&/oid&
&domainname&X401&/domainname&
&standardname&浙江省台州市玉环县X401&/standardname&
&name&X401&/name&
&addname&浙江省台州市玉环县X401&/addname&
&addcode&&/addcode&
&clasid&2321&/clasid&
&lon&121.&/lon&
&lat&28.&/lat&
&pnoid&-&/pnoid&
&fcode&&/fcode&
&/gplnpt330000_t_pn&
&/gml:featureMember&
&/wfs:FeatureCollection&
网络空间处理分析服务接口
1&&&&服务描述
Web处理服务(Web Processing Service简称WPS)遵循OGC的WPS1.0.0规范,该服务面向空间数据,它将包含地理位置值的地理空间数据作为处理对象,进行一系列的空间几何关系分析操作。
该接口支持以下操作:
GetCapabilities:返回描述服务和操作信息的XML文档;
Execute:在GetCapabilities确定什么样的查询可以执行、什么样的数据能够获取之后执行的,它使用XML文档结构发送和请求和返回结果,其中可以执行的操作可以细化。我们现在支持空间数据的缓冲分析子操作,结果用符合gml规范的文档返回;
DescribeProcess:对Execute操作中具体的子操作的详细描述,包括每个子操作实现的功能、参数的含义、类型、输入和返回的数据的类型、格式等的描述。
2&&&&接口常用参数说明
GetCapabilities
请求的类型,值为GetCapabilities
服务类型,值为WPS
AcceptVersions
服务能够支持的版本类型,值为1.0.0
DescribeProcess
请求的类型,值为DescribeProcess
服务类型,值为WPS
服务版本号,值为1.0.0
服务支持的语言名称
Identifier
要查询的Execute操作的子操作的名字, Buffer为缓冲操作
Buffer子操作
3&&&&服务参数设置示例
3.1&&服务发布
WPS发布支持Buffer操作。并无需要设置之参数。
3.2&&服务测试
GetCapabilities请求返回内容
&wps:Capabilities xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://www.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd" updateSequence="1" version="1.0.0" xml:lang="zh-CN"&
&ows:ServiceIdentification&
&ows:Title/&
&ows:Abstract/&
&ows:Keywords&
&ows:Keyword/&
&/ows:Keywords&
&ows:ServiceType/&
&ows:ServiceTypeVersion&1.0.0&/ows:ServiceTypeVersion&
&ows:Fees&None&/ows:Fees&
&ows:AccessConstraints&None&/ows:AccessConstraints&
&/ows:ServiceIdentification&
&ows:ServiceProvider&
&ows:ProviderName/&
&ows:ProviderSite xlink:href=""/&
&ows:ServiceContact&
&ows:ContactInfo&
&ows:Phone&
&ows:Voice/&
&ows:Facsimile/&
&/ows:Phone&
&ows:Address&
&ows:DeliveryPoint/&
&ows:City/&
&ows:AdministrativeArea/&
&ows:PostalCode/&
&ows:Country/&
&ows:ElectronicMailAddress/&
&/ows:Address&
&/ows:ContactInfo&
&/ows:ServiceContact&
&/ows:ServiceProvider&
&ows:OperationsMetadata&
&ows:Operation name="GetCapabilities"&
&ows:HTTP&
&ows:Get xlink:href="http://ysl:8000/wps/wps.asmx/wps?"/&
&/ows:HTTP&
&/ows:DCP&
&/ows:Operation&
&ows:Operation name="DescribeProcess"&
&ows:HTTP&
&ows:Get xlink:href="http://ysl:8000/wps/wps.asmx/wps?"/&
&/ows:HTTP&
&/ows:DCP&
&/ows:Operation&
&ows:Operation name="Execute"&
&ows:HTTP&
&ows:Get xlink:href="http://ysl:8000/wps/wps.asmx/wps?"/&
&ows:Post xlink:href="http://ysl:8000/wps/wps.asmx/wps?"/&
&/ows:HTTP&
&/ows:DCP&
&/ows:Operation&
&/ows:OperationsMetadata&
&wps:ProcessOfferings&
&wps:Process wps:processVersion="1"&
&ows:Identifier&Buffer&/ows:Identifier&
&wps:Title&Buffer some polygon features&/wps:Title&
&wps:Metadata xlink:title="Buffer"/&
&wps:Metadata xlink:title="polygon"/&
&/wps:Process&
&/wps:ProcessOfferings&
&wps:Languages&
&wps:Default&
&wps:Language&zh-CN&/wps:Language&
&/wps:Default&
&wps:Supported&
&wps:Language&zh-CN&/wps:Language&
&wps:Language&en-US&/wps:Language&
&/wps:Supported&
&/wps:Languages&
&/wps:Capabilities&
根据GetCapabilities请求返回内容得到Execute请求返回内容
&?xml version="1.0" encoding="utf-8"?&
&wps:ExecuteResponse xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://www.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd" service="WPS" version="1.0.0" xml:lang="zh-CN" serviceInstance="http://foo.bar/foo" statusLocation="http://foo.bar/foo"&
&wps:Process wps:processVersion="1"&
&ows:Identifier&Buffer&/ows:Identifier&
&ows:Title&Create a buffer around a polygon.&/ows:Title&
&ows:Abstract&String&/ows:Abstract&
&ows:Profile&OGC:WPS:Buffer&/ows:Profile&
&ows:WSDL xlink:href="http://10.33.1.139:7021/wps02/wps?wsdl" /&
&/wps:Process&
&wps:Status creationTime="Thu, 01 Nov :14 GMT"&
&wps:ProcessSucceeded /&
&/wps:Status&
&wps:OutputDefinitions&
&wps:Output mimeType="text/xml" encoding="UTF-8" schema="http://foo.bar/gml_polygon_schema.xsd" asReference="false"&
&ows:Identifier&BufferedPolygon&/ows:Identifier&
&ows:Title&Area serviced by playground.&/ows:Title&
&ows:Abstract&Area within which most users of this playground will live.&/ows:Abstract&
&/wps:Output&
&/wps:OutputDefinitions&
&wps:ProcessOutputs&
&wps:Output&
&ows:Identifier&BufferedPolygon&/ows:Identifier&
&ows:Title&Area serviced by playground.&/ows:Title&
&ows:Abstract&Area within which most users of this playground will live.&/ows:Abstract&
&wps:Data&
&wps:ComplexData encoding="UTF-8" mimeType="text/xml" schema="http://foo.bar/MyComplexValueSchema.xsd"&
&gml:FeatureCollection&
&gml:featureMember&
&gml:Feature&
&gml:Geometry&
&gml:Polygon&
&gml:outerBoundaryIs&
&gml:LinearRing&
&gml:coordinates&30.6,3.85 30.4,3.77 30.3,3.08 30.8,3.82 30.4,3.52 30.4,3.34 30.1,3.16 30.4,3.67 30.4,3.67 30.6,3.75 30.8,3.44 30.2,3.7 30.6,3. 30.6,3.18 30.9,3.36 30.6,3.85 &/gml:coordinates&
&/gml:LinearRing&
&/gml:outerBoundaryIs&
&/gml:Polygon&
&/gml:Geometry&
&/gml:Feature&
&/gml:featureMember&
&/gml:FeatureCollection&
&/wps:ComplexData&
&/wps:Data&
&/wps:Output&
&/wps:ProcessOutputs&
&/wps:ExecuteResponse&
DescribeProcess请求返回内容
&wps:ProcessDescriptions xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://www.opengis.net/wps/1.0.0/wpsDescribeProcess_response.xsd" service="WPS" version="1.0.0" xml:lang="zh-CN"&
&wps:ProcessDescription wps:processVersion="2" storeSupported="false" statusSupported="false"&
&ows:Identifier&Buffer&/ows:Identifier&
&ows:Title&Create a buffer around some polygons.&/ows:Title&
&ows:Abstarct&
Create a buffer around some single polygons. Accepts the polygon as GML and provides GML output for the buffered features.
&/ows:Abstarct&
&ows:Metadata xlink:title="Title"/&
&ows:Metadata xlink:geometry="Title"/&
&ows:Metadata xlink:buffer="Title"/&
&ows:Metadata xlink:GML="Title"/&
&wps:Profile&urn:ogc:wps:1.0.0:buffer&/wps:Profile&
&wps:WSDL xlink:href=":88/wpsService/wps.asmx?wsdl"/&
&wps:DataInputs&
&wps:Input minOccurs="1" maxOccurs="1"&
&ows:Identifier&InputPolygon&/ows:Identifier&
&ows:Title&A group of Polygons to be buffered&/ows:Title&
&ows:Abstract&The Geometries to buffer&/ows:Abstract&
&ows:ComplexData&
&ows:Default&
&ows:Format&
&ows:MimeType&text/XML&/ows:MimeType&
&ows:Schema&
http://geoserver.itc.nl:8080/wps/schemas/gml/2.1.2/gmlpacket.xsd
&/ows:Schema&
&/ows:Format&
&/ows:Default&
&ows:Supported&
&ows:Format&
&ows:MimeType&text/XML&/ows:MimeType&
&ows:Schema&http://schemas.opengis.net/gml/2.1.2/feature.xsd&/ows:Schema&
&/ows:Format&
&/ows:Supported&
&/ows:ComplexData&
&/wps:Input&
&wps:Input minOccurs="1" maxOccurs="1"&
&ows:Identifier&BufferDistance&/ows:Identifier&
&ows:Title&Buffer Distance&/ows:Title&
&ows:Abstract&URI to a GML resource file&/ows:Abstract&
&ows:LiteralData&
&ows:DataType&
&ows:AllowedValues&
&ows:Value/&
&/ows:AllowedValues&
&/ows:DataType&
&ows:UOMs&
&ows:Default&
&ows:UOM&degree&/ows:UOM&
&/ows:Default&
&ows:Supported&
&ows:UOM&degree&/ows:UOM&
&/ows:Supported&
&/ows:UOMs&
&ows:DefaultValue&0.001&/ows:DefaultValue&
&/ows:LiteralData&
&/wps:Input&
&/wps:DataInputs&
&wps:ProcessOutputs&
&ows:Output&
&ows:Identifier&BufferedPolygon&/ows:Identifier&
&ows:Title&Buffered Polygon&/ows:Title&
&ows:Abstract&
GML stream describing the buffered polygon feature.
&/ows:Abstract&
&ows:ComplexOutput&
&ows:Default&
&ows:Format&
&ows:MimeType&text/XML&/ows:MimeType&
&ows:Schema&
http://geoserver.itc.nl:8080/wps/schemas/gml/2.1.2/gmlpacket.xsd
&/ows:Schema&
&/ows:Format&
&/ows:Default&
&ows:Supported&
&ows:Format&
&ows:MimeType&text/XML&/ows:MimeType&
&ows:Schema&http://schemas.opengis.net/gml/2.1.2/feature.xsd&/ows:Schema&
&/ows:Format&
&/ows:Supported&
&/ows:ComplexOutput&
&/ows:Output&
&/wps:ProcessOutputs&
&/wps:ProcessDescription&
&/wps:ProcessDescriptions&
根据GetCapabilities返回内容设置GetMap各个参数,即可返回地图图片,如下图所示:
网络覆盖服务接口
1&&&&服务描述
Web覆盖服务(Web Coverage Service简称WCS)遵循OGC的WCS1.0.0规范。该服务面向空间影像数据,它将包含地理位置值的地理空间数据作为“覆盖(Coverage)”在网上相互交换。
该接口支持以下操作:
GetCapabilities:返回描述服务和数据集的XML文档;
GetCoverage:在GetCapabilities确定什么样的查询可以执行、什么样的数据能够获取之后执行的,它使用通用的覆盖格式返回地理位置的值或属性,目前返回支持tiff格式;
DescribeCoverage:允许用户终端请求由具体的WCS服务器提供的任一覆盖层的完全描述。
2&&&&接口常用参数说明
GetCapabilities
请求的类型,值为GetCapabilities
GetCoverage
请求的类型,值为GetCoverage
服务版本号,支持1.0.0
空间参考类型,值可以为EPSG:4490
请求的图层名字
请求的图层范围,格式为最小x,最小y,最大x,最大y
返回图片的宽度,单位为像素
返回图片的高度,单位为像素
返回图片的格式,目前仅支持geotiff
服务类型,值必须为WCS
DescribeCoverage
请求的类型,值必须为DescribeCoverage
请求的图层名字
3&&&&服务参数设置示例
3.1&&服务发布
WCS发布支持ArcGIS的mxd文件,通过mxd文件配置需发布的栅格要素图层(影像、地形等)及可视化样式。服务发布时选择对应数据的.mxd文件。
3.2&&服务测试
GetCapabilities请求返回内容
&WCS_Capabilities xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengeospatial.net/wcs/1.0.0/wcsCapabilities.xsd" version="1.0.0"&
&name&wcs&/name&
&label&wcs&/label&
&responsibleParty&
&organisationName/&
&contactInfo&
&address/&
&onlineResource xlink:href=""/&
&/contactInfo&
&/responsibleParty&
&fees&None&/fees&
&accessConstraints&NONE&/accessConstraints&
&/Service&
&Capability&
&GetCapabilities&
&OnlineResource xlink:type="simple" xlink:href=":88/ZJDEM/wcs.asmx/wcs?"/&
&/DCPType&
&/GetCapabilities&
&DescribeCoverage&
&OnlineResource xlink:type="simple" xlink:href=":88/ZJDEM/wcs.asmx/wcs?"/&
&/DCPType&
&/DescribeCoverage&
&GetCoverage&
&OnlineResource xlink:type="simple" xlink:href=":88/ZJDEM/wcs.asmx/wcs?"/&
&/DCPType&
&/GetCoverage&
&/Request&
&Exception&
&Format&application/vnd.ogc.se_xml&/Format&
&/Exception&
&/Capability&
&ContentMetadata&
&CoverageOfferingBrief&
&Name&50mdem.img&/Name&
&Title&50mdem.img&/Title&
&lonLatEnvelope srsName="WGS84(DD)"&
&gml:pos dimension="2"&118. 27.3&/gml:pos&
&gml:pos dimension="2"&122. 31.4&/gml:pos&
&/lonLatEnvelope&
&/CoverageOfferingBrief&
&CoverageOfferingBrief&
&Name&hs50.img&/Name&
&Title&hs50.img&/Title&
&lonLatEnvelope srsName="WGS84(DD)"&
&gml:pos dimension="2"&118. 27.1&/gml:pos&
&gml:pos dimension="2"&122. 31.8&/gml:pos&
&/lonLatEnvelope&
&/CoverageOfferingBrief&
&/ContentMetadata&
&/WCS_Capabilities&
DescribeCoverage请求返回内容
&CoverageDescription xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengeospatial.net/wcs/1.0.0/describeCoverage.xsd" version="1.0.0"&
&CoverageOffering&
&name&50mdem.img&/name&
&label&50mdem.img&/label&
&lonLatEnvelope srsName="WGS84(DD)"&
&gml:pos dimension="2"&118. 27.3&/gml:pos&
&gml:pos dimension="2"&122. 31.4&/gml:pos&
&/lonLatEnvelope&
&domainSet&
&spatialDomain&
&gml:Envelope srsName="EPSG:4490"&
&gml:pos dimension="2"&118. 27.3&/gml:pos&
&gml:pos dimension="2"&122. 31.4&/gml:pos&
&/gml:Envelope&
&gml:RectifiedGrid dimension="2"&
&gml:limits&
&gml:GridEnvelope&
&gml:low&0 0&/gml:low&
&gml:high&&/gml:high&
&/gml:GridEnvelope&
&/gml:limits&
&gml:axisName&x&/gml:axisName&
&gml:axisName&y&/gml:axisName&
&gml:origin&
&gml:pos&118. 31.4&/gml:pos&
&/gml:origin&
&gml:offsetVector&0.&/gml:offsetVector&
&gml:offsetVector&0 -0.862638&/gml:offsetVector&
&/gml:RectifiedGrid&
&/spatialDomain&
&/domainSet&
&rangeSet&
&RangeSet&
&name&RangeSet_50mdem.img&/name&
&label&50mdem.img RangeSet&/label&
&axisDescription&
&AxisDescription&
&name&Band&/name&
&label&Band Numbers&/label&
&singleValue&1&/singleValue&
&/AxisDescription&
&/axisDescription&
&nullValues&
&singleValue&-3.&/singleValue&
&/nullValues&
&/RangeSet&
&/rangeSet&
&supportedCRSs&
&requestResponseCRSs&EPSG:4490&/requestResponseCRSs&
&nativeCRSs&EPSG:4490&/nativeCRSs&
&/supportedCRSs&
&supportedFormats nativeFormat="GeoTIFF"&
&formats&GeoTIFF&/formats&
&formats&JPEG&/formats&
&formats&PNG&/formats&
&/supportedFormats&
&/CoverageOffering&
&/CoverageDescription&
GetCoverage请求返回内容
根据GetCapabilities及DescribeCoverage返回内容设置GetCoverage各个参数,即可返回影像覆盖,如下图所示:
网络要素服务接口
1&&&&服务描述<}

我要回帖

更多关于 瓦片地图服务 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信