服务简介

Map@Line地理信息服务在线发布系统提供符合国家“天地图”建设相关技术标准与规范的地理信息服务及服务发布和管理。主要包含遵循OGC标准的地图服务(WMTS、WMS)、地名地址服务(WFS-G)、数据存取服务(WFS、WCS)、数据处理服务(WPS)等。服务可与国家“天地图”以及其他各级节点网站实现无缝聚合,为国家、省、市、县级节点的互联互通提供有效保障。软件可对服务进行启动、停止、重启等管理,同时,支持服务集群部署,可对集群节点进行配置和管理。系统还提供一键式快速安装部署程序。

网络地图瓦片服务接口

1    服务描述

Web Map Tile Service(网络地图瓦片服务),简称WMTS,由开放地理信息联盟(Open GeoSpatial Consortium,OGC)指定,采用HTTP协议,通过指定的参数返回相应的地图瓦片,该瓦片通常已在服务端预先按照规定格式生成。

该接口支持以下操作:

  1. GetCapabilities:获取服务的要素类及支持的操作,即服务元数据;
  2. GetTile:获取地图瓦片。

2    接口常用参数说明

操作名 参数名 是否必须 备注
GetCapabilities VERSION 版本号,支持“1.0.0”
SERVICE 值为“WMTS”
REQUEST 值为“GetCapabilities”
GetTile VERSION 版本号,支持“1.0.0”
REQUEST 值为“GetTile”
LAYER 图层名
STYLE 样式名
FORMAT 请求图片的格式,支持“image/png”、“image/jpeg”、
“image/tiff”
TILEMATRIXSET 瓦片矩阵集
TILEMATRIX 瓦片矩阵
TILEROW 瓦片行号
TILECOL 瓦片列号

3    服务参数设置示例

3.1  服务发布

WMTS发布支持ArcGIS的切片格式,服务发布需要选择对应切片数据的conf.xml文件。

3.2  服务测试

  1. GetCapabilities请求返回内容
<Capabilities xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">

<ows:ServiceIdentification>
<ows:Title/>
<ows:Abstract/>

<ows:Keywords>
<ows:Keyword/>
</ows:Keywords>
<ows:ServiceType>OGC WMTS</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: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:ContactInfo>
</ows:ServiceContact>
</ows:ServiceProvider>

<ows:OperationsMetadata>

<ows:Operation name="GetCapabilities">

<ows:DCP>

<ows:HTTP>

<ows:Get xlink:href="http://ysl:8000/zjemap19/wmts.asmx/wmts?">

<ows:Constraint name="GetEncoding">

<ows:AllowedValues>
<ows:Value>KVP</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>

<ows:Operation name="GetTile">

<ows:DCP>

<ows:HTTP>
<ows:Get xlink:href="http://ysl:8000/zjemap19/wmts.asmx/wmts?"/>

<ows:Constraint name="GetEncoding">

<ows:AllowedValues>
<ows:Value>KVP</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata>

<Contents>

<Layer>
<ows:Title>ZJEMap</ows:Title>
<ows:Identifier>ZJEMap</ows:Identifier>
<ows:Abstract>ZJEMap</ows:Abstract>

<ows:WGS84BoundingBox>
<ows:LowerCorner>118.012325618533 27.0204981606401</ows:LowerCorner>
<ows:UpperCorner>123.251176548901 31.1910040143694</ows:UpperCorner>
</ows:WGS84BoundingBox>

<ows:BoundingBox>
<ows:LowerCorner>118.012325618533 27.0204981606401</ows:LowerCorner>
<ows:UpperCorner>123.251176548901 31.1910040143694</ows:UpperCorner>
</ows:BoundingBox>

<Style>
<ows:Identifier>default</ows:Identifier>
</Style>
<Format>image/png</Format>

<TileMatrixSetLink>
<TileMatrixSet>TileMatrixSet0</TileMatrixSet>
</TileMatrixSetLink>
</Layer>

<TileMatrixSet>
<ows:Identifier>TileMatrixSet0</ows:Identifier>

<ows:SupportedCRS>
GEOGCS["GCS_CGCS_2000",DATUM["D_CGCS_2000",SPHEROID["CGCS_2000",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
</ows:SupportedCRS>

<TileMatrix>
<ows:Identifier>7</ows:Identifier>
<ScaleDenominator>4617149.97766929</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>108</MatrixWidth>
<MatrixHeight>22</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>8</ows:Identifier>
<ScaleDenominator>2308574.98883465</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>216</MatrixWidth>
<MatrixHeight>45</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>9</ows:Identifier>
<ScaleDenominator>1154287.49441732</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>431</MatrixWidth>
<MatrixHeight>90</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>10</ows:Identifier>
<ScaleDenominator>577143.747208661</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>863</MatrixWidth>
<MatrixHeight>179</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>11</ows:Identifier>
<ScaleDenominator>288571.873604331</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1725</MatrixWidth>
<MatrixHeight>358</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>12</ows:Identifier>
<ScaleDenominator>144285.936802165</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>3450</MatrixWidth>
<MatrixHeight>717</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>13</ows:Identifier>
<ScaleDenominator>72142.9684010827</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>6901</MatrixWidth>
<MatrixHeight>1433</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>14</ows:Identifier>
<ScaleDenominator>36071.4842005413</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>13801</MatrixWidth>
<MatrixHeight>2866</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>15</ows:Identifier>
<ScaleDenominator>18035.7421002707</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>27603</MatrixWidth>
<MatrixHeight>5733</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>16</ows:Identifier>
<ScaleDenominator>9017.87105013533</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>55205</MatrixWidth>
<MatrixHeight>11465</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>17</ows:Identifier>
<ScaleDenominator>4508.93552506767</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>110410</MatrixWidth>
<MatrixHeight>22930</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>18</ows:Identifier>
<ScaleDenominator>2254.46776253383</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>220821</MatrixWidth>
<MatrixHeight>45860</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>19</ows:Identifier>
<ScaleDenominator>1127.23388126692</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>441642</MatrixWidth>
<MatrixHeight>91721</MatrixHeight>
</TileMatrix>

<TileMatrix>
<ows:Identifier>20</ows:Identifier>
<ScaleDenominator>563.616940633458</ScaleDenominator>
<TopLeftCorner>-180 90</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>883283</MatrixWidth>
<MatrixHeight>183441</MatrixHeight>
</TileMatrix>
</TileMatrixSet>
</Contents>
</Capabilities>
  1. GetTile请求返回内容

根据GetCapabilities返回内容设置GetTile各个参数,即可返回地图瓦片,如下图所示:

网络地图服务接口

1    服务描述

Web Map Service(网络地图服务),简称WMS,由开放地理信息联盟(Open GeoSpatial Consortium,OGC)指定,采用HTTP协议,通过指定的参数返回相应的地图图片。

该接口支持以下操作:

  1. GetCapabilities:获取服务的要素类及支持的操作,即服务元数据;
  2. GetMap:获取地图图片。

2    接口常用参数说明

操作名 参数名 是否必须 备注
GetCapabilities VERSION 版本号,支持“1.3.0”
SERVICE 值为“WMS”
REQUEST 值为“GetCapabilities”
GetMap VERSION 版本号,支持“1.3.0”
REQUEST 值为“GetMap”
LAYER 图层列表,以“,”分割
STYLE 样式列表,以“,”分割,与LAYERS对应
CRS 坐标参考系
BBOX 请求范围
WIDTH 请求图片的宽度,以像素为单位
HEIGHT 请求图片的高度,以像素为单位
FORMAT 请求图片的格式,支持“image/png”、“image/jpeg”、“image/tiff”

3    服务参数设置示例

3.1  服务发布

WMS发布支持ArcGIS的mxd文件,通过mxd文件配置需发布的矢量要素图层及可视化样式。服务发布时选择对应数据的.mxd文件。

3.2  服务测试

  1. GetCapabilities请求返回内容
<WMS_Capabilities version="1.3.0">

<Service>
<Name/>
<Title/>
<Abstract/>
<KeywordList/>
<OnlineResource xlink:type="simple" xlink:href=""/>

<ContactInformation>

<ContactPersonPrimary>
<ContactPerson/>
<ContactOrganization/>
</ContactPersonPrimary>
<ContactPosition/>

<ContactAddress>
<AddressType/>
<Address/>
<City/>
<StateOrProvince/>
<PostCode/>
<Country/>
</ContactAddress>
<ContactVoiceTelephone/>
<ContactFacsimileTelephone/>
<ContactElectronicMailAddress/>
</ContactInformation>
<MaxWidth>2048</MaxWidth>
<MaxHeight>2048</MaxHeight>
</Service>

<Capability>

<Request>

<GetCapabilities>
<Format>text/xml</Format>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://ysl:8000/wms01/wms.asmx/wms?"/>
</Get>
</HTTP>
</DCPType>
</GetCapabilities>

<GetMap>
<Format>image/bmp</Format>
<Format>image/jpeg</Format>
<Format>image/tiff</Format>
<Format>image/png</Format>
<Format>image/gif</Format>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://ysl:8000/wms01/wms.asmx/wms?"/>
</Get>
</HTTP>
</DCPType>
</GetMap>
</Request>

<Exception>
<Format>XML</Format>
</Exception>

<Layer>
<Title>Layers</Title>
<CRS>EPSG:4490</CRS>
<BoundingBox CRS="EPSG:4490" minx="117.765764939364" miny="26.8385572383224" maxx="123.414543498144" maxy="31.3894136766153"/>

<EX_GeographicBoundingBox>
<westBoundLongitude>117.765764939364</westBoundLongitude>
<eastBoundLongitude>123.414543498144</eastBoundLongitude>
<southBoundLatitude>26.8385572383224</southBoundLatitude>
<northBoundLatitude>31.3894136766153</northBoundLatitude>
</EX_GeographicBoundingBox>

<Layer queryable="1">
<Name>POI</Name>
<Abstract/>
<Title>POI</Title>
<CRS>EPSG:4490</CRS>
<BoundingBox CRS="EPSG:4490" minx="120.16229201825" miny="30.3304026255677" maxx="120.293417346365" maxy="30.4614603146683"/>

<EX_GeographicBoundingBox>
<westBoundLongitude>120.16229201825</westBoundLongitude>
<eastBoundLongitude>120.293417346365</eastBoundLongitude>
<southBoundLatitude>30.3304026255677</southBoundLatitude>
<northBoundLatitude>30.4614603146683</northBoundLatitude>
</EX_GeographicBoundingBox>

<Style>
<Name>default</Name>
<Title>default</Title>
</Style>
</Layer>

<Layer queryable="1">
<Name>BOU_LN</Name>
<Abstract/>
<Title>BOU_LN</Title>
<CRS>EPSG:4490</CRS>
<BoundingBox CRS="EPSG:4490" minx="118.022529663809" miny="27.1247413237955" maxx="122.490740327257" maxy="31.182471449331"/>

<EX_GeographicBoundingBox>
<westBoundLongitude>118.022529663809</westBoundLongitude>
<eastBoundLongitude>122.490740327257</eastBoundLongitude>
<southBoundLatitude>27.1247413237955</southBoundLatitude>
<northBoundLatitude>31.182471449331</northBoundLatitude>
</EX_GeographicBoundingBox>

<Style>
<Name>default</Name>
<Title>default</Title>
</Style>
</Layer>

<Layer queryable="1">
<Name>BOU_PY</Name>
<Abstract/>
<Title>BOU_PY</Title>
<CRS>EPSG:4490</CRS>
<BoundingBox CRS="EPSG:4490" minx="118.022527601127" miny="27.0454143491539" maxx="123.157780836382" maxy="31.1825565657838"/>

<EX_GeographicBoundingBox>
<westBoundLongitude>118.022527601127</westBoundLongitude>
<eastBoundLongitude>123.157780836382</eastBoundLongitude>
<southBoundLatitude>27.0454143491539</southBoundLatitude>
<northBoundLatitude>31.1825565657838</northBoundLatitude>
</EX_GeographicBoundingBox>

<Style>
<Name>default</Name>
<Title>default</Title>
</Style>
</Layer>
</Layer>
</Capability>
</WMS_Capabilities>
  1. GetMap请求返回内容

根据GetCapabilities返回内容设置GetMap各个参数,即可返回地图图片,如下图所示:

网络覆盖服务接口

1    服务描述

Web覆盖服务(Web Coverage Service简称WCS)遵循OGC的WCS1.0.0规范。该服务面向空间影像数据,它将包含地理位置值的地理空间数据作为“覆盖(Coverage)”在网上相互交换。

该接口支持以下操作:

  1. GetCapabilities:返回描述服务和数据集的XML文档;
  2. GetCoverage:在GetCapabilities确定什么样的查询可以执行、什么样的数据能够获取之后执行的,它使用通用的覆盖格式返回地理位置的值或属性,目前返回支持tiff格式;
  3. DescribeCoverage:允许用户终端请求由具体的WCS服务器提供的任一覆盖层的完全描述。

2    接口常用参数说明

操作名 参数名 是否必须 备注
GetCapabilities REQUEST 请求的类型,值为GetCapabilities
GetCoverage REQUEST 请求的类型,值为GetCoverage
VERSION 服务版本号,支持1.0.0
CRS 空间参考类型,值可以为EPSG:4490
COVERAGE 请求的图层名字
BBOX 请求的图层范围,格式为最小x,最小y,最大x,最大y
WIDTH 返回图片的宽度,单位为像素
HEIGHT 返回图片的高度,单位为像素
FORMAT 返回图片的格式,目前仅支持geotiff
SERVICE 服务类型,值必须为WCS
DescribeCoverage REQUEST 请求的类型,值必须为DescribeCoverage
COVERAGE 请求的图层名字

3    服务参数设置示例

3.1  服务发布

WCS发布支持ArcGIS的mxd文件,通过mxd文件配置需发布的栅格要素图层(影像、地形等)及可视化样式。服务发布时选择对应数据的.mxd文件。

3.2  服务测试

  1. GetCapabilities请求返回内容
<WCS_Capabilities xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengeospatial.net/wcs/1.0.0/wcsCapabilities.xsd" version="1.0.0">

<Service>
<name>wcs</name>
<label>wcs</label>

<responsibleParty>
<organisationName/>

<contactInfo>
<phone/>
<address/>
<onlineResource xlink:href=""/>
</contactInfo>
</responsibleParty>
<fees>None</fees>
<accessConstraints>NONE</accessConstraints>
</Service>

<Capability>

<Request>

<GetCapabilities>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://www.zjditu.cn:88/ZJDEM/wcs.asmx/wcs?"/>
</Get>
</HTTP>
</DCPType>
</GetCapabilities>

<DescribeCoverage>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://www.zjditu.cn:88/ZJDEM/wcs.asmx/wcs?"/>
</Get>
</HTTP>
</DCPType>
</DescribeCoverage>

<GetCoverage>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://www.zjditu.cn:88/ZJDEM/wcs.asmx/wcs?"/>
</Get>
</HTTP>
</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.022302387602 27.1658383188973</gml:pos>
<gml:pos dimension="2">122.655078360938 31.1826987267044</gml:pos>
</lonLatEnvelope>
</CoverageOfferingBrief>

<CoverageOfferingBrief>
<Name>hs50.img</Name>
<Title>hs50.img</Title>

<lonLatEnvelope srsName="WGS84(DD)">
<gml:pos dimension="2">118.022302387603 27.1658383305681</gml:pos>
<gml:pos dimension="2">122.655078347478 31.1826987267038</gml:pos>
</lonLatEnvelope>
</CoverageOfferingBrief>
</ContentMetadata>
</WCS_Capabilities>
  1. 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.022302387602 27.1658383188973</gml:pos>
<gml:pos dimension="2">122.655078360938 31.1826987267044</gml:pos>
</lonLatEnvelope>

<domainSet>

<spatialDomain>

<gml:Envelope srsName="EPSG:4490">
<gml:pos dimension="2">118.022302387602 27.1658383188973</gml:pos>
<gml:pos dimension="2">122.655078360938 31.1826987267044</gml:pos>
</gml:Envelope>

<gml:RectifiedGrid dimension="2">

<gml:limits>

<gml:GridEnvelope>
<gml:low>0 0</gml:low>
<gml:high>10192 8837</gml:high>
</gml:GridEnvelope>
</gml:limits>
<gml:axisName>x</gml:axisName>
<gml:axisName>y</gml:axisName>

<gml:origin>
<gml:pos>118.022302387602 31.1826987267044</gml:pos>
</gml:origin>
<gml:offsetVector>0.000454550232862638 0</gml:offsetVector>
<gml:offsetVector>0 -0.000454550232862638</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>

<values>
<singleValue>1</singleValue>
</values>
</AxisDescription>
</axisDescription>

<nullValues>
<singleValue>-3.402823E+38</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>

  1. GetCoverage请求返回内容

根据GetCapabilities及DescribeCoverage返回内容设置GetCoverage各个参数,即可返回影像覆盖,如下图所示:

网络要素服务接口

1    服务描述

Web Feature Service(网络要素服务),简称WFS。由开放地理信息联盟(Open GeoSpatial Consortium,OGC)指定,采用HTTP协议,通过指定的参数返回相应的要素信息。

该接口支持以下操作:

  1. GetCapabilities:获取服务的要素类及支持的操作,即服务元数据;
  2. DescribeFeatureType:获取要素的描述信息,即要素元数据;
  3. GetFeature:获取要素信息。

2    接口常用参数说明

操作名 参数名 是否必须 备注
GetCapabilities VERSION 服务版本号,支持1.0.0
SERVICE 值为“WFS”
REQUEST 值为“GetCapabilities”
DescribeFeatureType VERSION 版本号,支持“1.1.0”
REQUEST 值为“DescribeFeatureType”
TYPENAME 图层列表,以“,”分割
OUTPUTFORMAT 支持“text/xml”
GetFeature VERSION 版本号,支持“1.1.0”
REQUEST 值为“GetFeature”
TYPENAME 图层列表,以“,”分割
OUTPUTFORMAT 支持“text/xml”
BBOX 请求的范围
PROPERTYNAME 图层的属性列表,以“,”分割
FILTER 过滤条件
MAXFEATURES 请求的最大要素记录数
FEATUREID 要素ID号
RESULTTYPE 值为“results”

3    服务参数设置示例

3.1  服务发布

WFS发布支持ArcGIS的shp、gdb文件,服务发布需要选择对应数据的shp或gdb文件,并支持发布多个图层。

3.2  服务测试

  1. 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:DCP>

<ows:HTTP>
<ows:Get xlink:href="http://www.zjditu.cn:88/ZJGN_WFS/wfs.asmx/wfs?"/>
<ows:Post xlink:href="http://www.zjditu.cn: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:DCP>

<ows:HTTP>
<ows:Get xlink:href="http://www.zjditu.cn:88/ZJGN_WFS/wfs.asmx/wfs?"/>
<ows:Post xlink:href="http://www.zjditu.cn:88/ZJGN_WFS/wfs.asmx/wfs?"/>
</ows:HTTP>
</ows:DCP>

<ows:Parameter name="outputFormat">
<ows:Value>text/xml; subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value>
</ows:Parameter>
</ows:Operation>

<ows:Operation name="GetFeature">

<ows:DCP>

<ows:HTTP>
<ows:Get xlink:href="http://www.zjditu.cn:88/ZJGN_WFS/wfs.asmx/wfs?"/>
<ows:Post xlink:href="http://www.zjditu.cn: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/xml; subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value>
</ows:Parameter>
</ows:Operation>
</ows:OperationsMetadata>

<FeatureTypeList>

<Operations>
<Query/>
</Operations>

<FeatureType>
<Name>GPLNPT330000</Name>
<Title>GPLNPT330000</Title>
<DefaultSRS>EPSG:4490</DefaultSRS>

<OutputFormats>
<Format>text/xml; subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</Format>
</OutputFormats>

<ows:WGS84BoundingBox>
<ows:LowerCorner>117.774746570208 26.8388531477881</ows:LowerCorner>
<ows:UpperCorner>123.190733224598 31.3865800985861</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>
  1. DescribeFeatureType请求返回内容
<schema targetNamespace="http://www.zjditu.cn: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>
</schema>

  1. GetFeature请求返回内容

根据GetCapabilities及DescribeFeatureType返回内容设置GetFeature各个参数,得到返回内容:

<wfs:FeatureCollection xsi:schemaLocation="http://www.zjditu.cn:88/ZJGN_WFS/wfs.asmx/wfs http://www.zjditu.cn:88/ZJGN_WFS/wfs.asmx/wfs?request=DescribeFeatureType%26version=1.1.0%26typename=GPLNPT330000%W26service=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.774746570208 26.8388531477881</gml:lowerCorner>
<gml:upperCorner>123.190733224598 31.3865800985861</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>

<gml:featureMember>

<GPLNPT330000 fid="1">
<FID>1</FID>

<Shape>

<gml:Point srsName="EPSG:4490">
<gml:pos srsDimensions="2">121.289091957449 28.217846272486</gml:pos>
</gml:Point>
</Shape>
<FCODE>420106316</FCODE>
<EntiID> </EntiID>
<PNOID>331021-000-2321-X401</PNOID>
<pinyin>x401</pinyin>
<NAME>X401</NAME>
<fullnamepi>zhejiangshengtaizhoushiyuhuanxianx401</fullnamepi>
<ADDNAME>浙江省台州市玉环县X401</ADDNAME>
<ADDCODE>331021000</ADDCODE>
<CLASID>2321</CLASID>
<ABBREV> </ABBREV>
<POINT_Z>0</POINT_Z>
<POINT_M>1</POINT_M>
<LON>121.289091957</LON>
<LAT>28.2178462725</LAT>
</GPLNPT330000>
</gml:featureMember>
</wfs:FeatureCollection>

网络要素名录服务接口

1    服务描述

Web Feature for Gazetteer Service(网络要素名录服务),简称WFS-G。由开放地理信息联盟(Open GeoSpatial Consortium,OGC)指定,采用HTTP协议,通过指定的参数返回相应的要素名录信息。该服务与WFS支持的操作相同。该服务主要用于地名地址数据的查询检索,该服务除支持常规图层列表外,还支持ISO19112:SI_Gazetteer类型。

该接口支持以下操作:

  1. GetCapabilities:获取服务的要素类及支持的操作,即服务元数据;
  2. DescribeFeatureType:获取要素的描述信息,即要素元数据;
  3. GetFeature:获取要素信息。

2    接口常用参数说明

操作名 参数名 是否必须 备注
GetCapabilities VERSION 服务版本号,支持1.0.0
SERVICE 值为“WFS”
REQUEST 值为“GetCapabilities”
DescribeFeatureType VERSION 版本号,支持“1.1.0”
REQUEST 值为“DescribeFeatureType”
TYPENAME 图层列表,以“,”分割
OUTPUTFORMAT 支持“text/xml”
GetFeature VERSION 版本号,支持“1.1.0”
REQUEST 值为“GetFeature”
TYPENAME 图层列表,以“,”分割
OUTPUTFORMAT 支持“text/xml”
BBOX 请求的范围
PROPERTYNAME 图层的属性列表,以“,”分割
FILTER 过滤条件
MAXFEATURES 请求的最大要素记录数
FEATUREID 要素ID号
RESULTTYPE 值为“results”

3    服务参数设置示例

3.1  服务发布

WFS-G发布支持Access、MySQL、Oracle数据库,服务发布需要选择对应数据库文件。

3.2  服务测试

  1. 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">

<Service>
<Name/>
<Title/>
<Abstract/>
<KeywordList/>
<OnlineResource/>
</Service>

<Capability>

<Request>

<GetCapabilities>

<DCPType>

<HTTP>
<Get onlineResource="http://www.zjditu.cn:88/ZJGN/wfsg.asmx/wfs?"/>
</HTTP>
</DCPType>
</GetCapabilities>

<GetFeature>

<ResultFormat>
<GML2/>
</ResultFormat>

<DCPType>

<HTTP>
<Get onlineResource="http://www.zjditu.cn:88/ZJGN/wfsg.asmx/wfs?"/>
</HTTP>
</DCPType>
</GetFeature>

<DescribeFeatureType>

<SchemaDescriptionLanguage>
<XMLSCHEMA/>
</SchemaDescriptionLanguage>

<DCPType>

<HTTP>
<Get onlineResource="http://www.zjditu.cn:88/ZJGN/wfsg.asmx/wfs?"/>
</HTTP>
</DCPType>
</DescribeFeatureType>
</Request>
<VendorSpecificCapabilities/>
</Capability>

<FeatureTypeList>

<Operations>
<Query/>
</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:OR/>
<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>

  1. 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>
</schema>

  1. GetFeature请求返回内容

根据GetCapabilities及DescribeFeatureType返回内容设置GetFeature各个参数,得到返回内容:

<wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs WFS_Basic.xsd http://www.geostart.com.cn/geoglobe describe.xsd">

<gml:boundedBy>

<gml:Box>
<gml:coordinates>121.277512,28.210822 121.277512,28.210822</gml:coordinates>
</gml:Box>
</gml:boundedBy>

<gml:featureMember>

<gplnpt330000_t_pn>
<oid>1</oid>
<domainname>X401</domainname>
<nlevel/>
<standardname>浙江省台州市玉环县X401</standardname>
<gbcode/>
<name>X401</name>
<addname>浙江省台州市玉环县X401</addname>
<addcode>331021000</addcode>
<clasid>2321</clasid>
<lon>121.27751200</lon>
<lat>28.21082200</lat>
<pnoid>331021-000-2321-X401</pnoid>
<entiid/>
<fcode>420106316</fcode>
</gplnpt330000_t_pn>
</gml:featureMember>
</wfs:FeatureCollection>


网络空间处理分析服务接口

1    服务描述

Web处理服务(Web Processing Service简称WPS)遵循OGC的WPS1.0.0规范,该服务面向空间数据,它将包含地理位置值的地理空间数据作为处理对象,进行一系列的空间几何关系分析操作。

该接口支持以下操作:

  1. GetCapabilities:返回描述服务和操作信息的XML文档;
  2. Execute:在GetCapabilities确定什么样的查询可以执行、什么样的数据能够获取之后执行的,它使用XML文档结构发送和请求和返回结果,其中可以执行的操作可以细化。我们现在支持空间数据的缓冲分析子操作,结果用符合gml规范的文档返回;
  3. DescribeProcess:对Execute操作中具体的子操作的详细描述,包括每个子操作实现的功能、参数的含义、类型、输入和返回的数据的类型、格式等的描述。

2    接口常用参数说明

操作名 参数名 是否必须 备注
GetCapabilities REQUEST 请求的类型,值为GetCapabilities
SERVICE 服务类型,值为WPS
AcceptVersions 服务能够支持的版本类型,值为1.0.0
DescribeProcess REQUEST 请求的类型,值为DescribeProcess
SERVICE 服务类型,值为WPS
VERSION 服务版本号,值为1.0.0
Language 服务支持的语言名称
Identifier 要查询的Execute操作的子操作的名字, Buffer为缓冲操作
Execute Buffer子操作

3    服务参数设置示例

3.1  服务发布

WPS发布支持Buffer操作。并无需要设置之参数。

3.2  服务测试

  1. 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:DCP>
 
<ows:HTTP>
<ows:Get xlink:href="http://ysl:8000/wps/wps.asmx/wps?"/>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
 
<ows:Operation name="DescribeProcess">
 
<ows:DCP>
 
<ows:HTTP>
<ows:Get xlink:href="http://ysl:8000/wps/wps.asmx/wps?"/>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
 
<ows:Operation name="Execute">
 
<ows:DCP>
 
<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>
  1. 根据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 2012 11:12: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.8592167455666,3.49247728968585 30.8596218736324,3.49279950148377 30.8598116189303,3.49328110911908 30.8597351393608,3.49379306621482 30.7873054823784,3.66039853877952 30.7869832705804,3.66080366684534 30.7865016629451,3.66099341214316 30.7859897058494,3.66091693257367 30.7859897058494,3.66091693257367 30.7855845777836,3.66059472077575 30.7853948324858,3.66011311314044 30.7854713120552,3.6596011560447 30.8579009690376,3.49299568348 30.8582231808356,3.49259055541418 30.8587047884709,3.49240081011636 30.8592167455666,3.49247728968585 </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>
  1. 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="http://www.zjditu.cn: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)”在网上相互交换。

该接口支持以下操作:

  1. GetCapabilities:返回描述服务和数据集的XML文档;
  2. GetCoverage:在GetCapabilities确定什么样的查询可以执行、什么样的数据能够获取之后执行的,它使用通用的覆盖格式返回地理位置的值或属性,目前返回支持tiff格式;
  3. DescribeCoverage:允许用户终端请求由具体的WCS服务器提供的任一覆盖层的完全描述。

2    接口常用参数说明

操作名 参数名 是否必须 备注
GetCapabilities REQUEST 请求的类型,值为GetCapabilities
GetCoverage REQUEST 请求的类型,值为GetCoverage
VERSION 服务版本号,支持1.0.0
CRS 空间参考类型,值可以为EPSG:4490
COVERAGE 请求的图层名字
BBOX 请求的图层范围,格式为最小x,最小y,最大x,最大y
WIDTH 返回图片的宽度,单位为像素
HEIGHT 返回图片的高度,单位为像素
FORMAT 返回图片的格式,目前仅支持geotiff
SERVICE 服务类型,值必须为WCS
DescribeCoverage REQUEST 请求的类型,值必须为DescribeCoverage
COVERAGE 请求的图层名字

3    服务参数设置示例

3.1  服务发布

WCS发布支持ArcGIS的mxd文件,通过mxd文件配置需发布的栅格要素图层(影像、地形等)及可视化样式。服务发布时选择对应数据的.mxd文件。

3.2  服务测试

  1. GetCapabilities请求返回内容
<WCS_Capabilities xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengeospatial.net/wcs/1.0.0/wcsCapabilities.xsd" version="1.0.0">

<Service>
<name>wcs</name>
<label>wcs</label>

<responsibleParty>
<organisationName/>

<contactInfo>
<phone/>
<address/>
<onlineResource xlink:href=""/>
</contactInfo>
</responsibleParty>
<fees>None</fees>
<accessConstraints>NONE</accessConstraints>
</Service>

<Capability>

<Request>

<GetCapabilities>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://www.zjditu.cn:88/ZJDEM/wcs.asmx/wcs?"/>
</Get>
</HTTP>
</DCPType>
</GetCapabilities>

<DescribeCoverage>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://www.zjditu.cn:88/ZJDEM/wcs.asmx/wcs?"/>
</Get>
</HTTP>
</DCPType>
</DescribeCoverage>

<GetCoverage>

<DCPType>

<HTTP>

<Get>
<OnlineResource xlink:type="simple" xlink:href="http://www.zjditu.cn:88/ZJDEM/wcs.asmx/wcs?"/>
</Get>
</HTTP>
</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.022302387602 27.1658383188973</gml:pos>
<gml:pos dimension="2">122.655078360938 31.1826987267044</gml:pos>
</lonLatEnvelope>
</CoverageOfferingBrief>

<CoverageOfferingBrief>
<Name>hs50.img</Name>
<Title>hs50.img</Title>

<lonLatEnvelope srsName="WGS84(DD)">
<gml:pos dimension="2">118.022302387603 27.1658383305681</gml:pos>
<gml:pos dimension="2">122.655078347478 31.1826987267038</gml:pos>
</lonLatEnvelope>
</CoverageOfferingBrief>
</ContentMetadata>
</WCS_Capabilities>
  1. 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.022302387602 27.1658383188973</gml:pos>
<gml:pos dimension="2">122.655078360938 31.1826987267044</gml:pos>
</lonLatEnvelope>

<domainSet>

<spatialDomain>

<gml:Envelope srsName="EPSG:4490">
<gml:pos dimension="2">118.022302387602 27.1658383188973</gml:pos>
<gml:pos dimension="2">122.655078360938 31.1826987267044</gml:pos>
</gml:Envelope>

<gml:RectifiedGrid dimension="2">

<gml:limits>

<gml:GridEnvelope>
<gml:low>0 0</gml:low>
<gml:high>10192 8837</gml:high>
</gml:GridEnvelope>
</gml:limits>
<gml:axisName>x</gml:axisName>
<gml:axisName>y</gml:axisName>

<gml:origin>
<gml:pos>118.022302387602 31.1826987267044</gml:pos>
</gml:origin>
<gml:offsetVector>0.000454550232862638 0</gml:offsetVector>
<gml:offsetVector>0 -0.000454550232862638</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>

<values>
<singleValue>1</singleValue>
</values>
</AxisDescription>
</axisDescription>

<nullValues>
<singleValue>-3.402823E+38</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>

  1. GetCoverage请求返回内容

根据GetCapabilities及DescribeCoverage返回内容设置GetCoverage各个参数,即可返回影像覆盖,如下图所示:

网络要素服务接口

1    服务描述<