ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

地名词典服务标准WFS-G

2022-05-06 19:32:40  阅读:231  来源: 互联网

标签:GetFeature EPSG request wfs WFS 2.0 词典 地名


WFS

WFS 的当前版本是2.0.0。GeoServer 支持版本 2.0.0、1.1.0 和 1.0.0。尽管版本之间存在一些重要差异,但请求语法通常保持不变, WFS 的所有版本都支持以下操作:

GetCapabilities 生成描述服务器提供的 WFS 服务以及有效的 WFS 操作和参数的元数据文档
DescribeFeatureType 返回 WFS 服务支持的要素类型的描述
GetFeature 返回来自数据源的特征选择,包括几何和属性值
LockFeature 防止通过永久特征锁编辑特征
Transaction 通过创建、更新和删除来编辑现有要素类型

以下操作仅在2.0.0 版本中可用

GetPropertyValue 从使用查询表达式识别的一组特征的数据存储中检索特征属性的值或复杂特征属性的部分值
GetFeatureWithLock 返回选择的功能并对这些功能应用锁定
CreateStoredQuery 在 WFS 服务器上创建存储查询
DropStoredQuery 从 WFS 服务器中删除存储的查询
ListStoredQueries 返回 WFS 服务器上存储的查询列表
DescribeStoredQueries 返回描述 WFS 服务器上存储的查询的元数据文档

以下操作仅在1.1.0 版本中可用

GetGMLObject 从 WFS 按 ID 检索要素和元素

GetCapabilities

GetCapabilities操作是向 WFS 服务器请求该服务器支持的操作和服务或功能列表的请求,请求参数如下,根据规范,所有参数在技术上都是必需的,但如果请求中省略了任何参数,GeoServer 将提供默认值

参数名 是否必需 描述
service 是的 服务名称 - 值为WFS
version 是的 服务版本 - 值为当前版本号。必须提供完整的版本号(“1.1.0”、“1.0.0”),而不是缩写形式(“1”或“1.1”)。
request 是的 操作名称—值为GetCapabilities

GetCapabilities 返回的是一个冗长的 XML 文档,每个支持的版本的格式都不同。GetCapabilities 文档中有五个主要部分

ServiceIdentification 包含请求的基本标头信息,例如Title和ServiceType。指示支持的ServiceTypeWFS 版本。
ServiceProvider 提供有关发布 WFS 服务的公司的联系信息,包括电话、网站和电子邮件。
OperationsMetadata 描述 WFS 服务器支持的操作以及每个操作的参数。WFS 服务器可以配置为不响应上面列出的操作。
FeatureTypeList 列出 WFS 服务器发布的要素类型。功能类型在表格中列出namespace:featuretype。还列出了要素类型的默认投影,以及所述投影中数据的边界框。
Filter_Capabilities 列出可用于形成查询谓词的过滤器或表达式,例如SpatialOperators(例如Equals, Touches)和ComparisonOperators(例如LessThan, GreaterThan)。过滤器本身不包含在 GetCapabilities 文档中。

请求样例

http://example.com/geoserver/wfs?
  service=wfs&
  version=1.1.0&
  request=GetCapabilities

DescribeFeatureType

在请求实际数据之前, DescribeFeatureType会请求有关单个要素类型的信息。具体来说,该操作将请求给定特征类型的特征和属性列表,或列出可用的特征类型。
DescribeFeatureType 的参数为:

参数名 是否必须 描述
service 服务名称 - 值为WFS
version 服务版本 - 值为当前版本号
request 操作名称—值为DescribeFeatureType
typeNames 要描述的要素类型的名称(typeName对于 WFS 1.1.0 和更早版本)
exceptions 报告异常的格式——默认值为application/vnd.ogc.se_xml
outputFormat 定义用于描述特征类型的方案描述语言

返回特征类型列表

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=DescribeFeatureType

要列出有关名为 的特定功能类型的信息namespace:featuretype

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=DescribeFeatureType&
  typeNames=namespace:featuretype

GetFeature

GetFeature操作返回数据源中的特征选择。
此请求将为给定层执行 GetFeature 请求namespace:featuretype

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype

执行此命令将返回给定特征类型中所有特征的几何图形,可能是大量数据。要限制输出,您可以通过包含附加参数featureID并提供特定功能的 ID 来将 GetFeature 请求限制为单个功能。在这种情况下,GET 请求将是:

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  featureID=feature

如果特征 ID 未知,但您仍想限制返回的特征数量,请使用countWFS 2.0.0 的maxFeatures参数或早期 WFS 版本的参数。在下面的示例中,N表示要返回的特征数:

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  count=N
http://example.com/geoserver/wfs?
  service=wfs&
  version=1.1.0&
  request=GetFeature&
  typeName=namespace:featuretype&
  maxFeatures=N

具体返回哪 N 个特征取决于数据的内部结构。但是,您可以根据属性值对返回的选择进行排序。在下面的示例中,使用sortBy=attribute参数在请求中包含一个属性(替换attribute为您希望排序的属性):

http://example.com/geoserver/wfs?
   service=wfs&
   version=2.0.0&
   request=GetFeature&
   typeNames=namespace:featuretype&
   count=N&
   sortBy=attribute

默认排序操作是按升序排序。一些 WFS 服务器需要指定排序顺序,即使需要升序排序也是如此。在这种情况下,将 a 附加+A到请求中。反之,+D在请求中添加 a 以降序排序,如下所示

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  count=N&
  sortBy=attribute+D

没有义务在 GetFeature 请求中使用sortBywith count,但它们可以一起使用以更有效地管理返回的特征选择。
要通过属性而不是功能来限制 GetFeature 请求,请使用propertyName表单中的键propertyName=attribute。您可以指定单个属性,也可以指定多个用逗号分隔的属性。要在所有要素中搜索单个属性,需要以下请求:

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  propertyName=attribute

对于仅来自一个功能的单个属性,请同时使用featureID和propertyName:

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  featureID=feature&
  propertyName=attribute

对于单个功能的多个属性,请使用逗号分隔的值列表propertyName:

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  featureID=feature&
  propertyName=attribute1,attribute2

虽然 GetFeature 请求的上述排列侧重于非空间参数,但也可以根据几何查询特征。虽然空间查询的 GET 请求中可用的选项有限(使用过滤器的 POST 请求中可用的选项更多),但支持按边界框 (BBOX) 进行过滤。
BBOX 参数允许您搜索包含(或部分包含)在用户定义坐标框中的要素。BBOX 参数的格式为bbox=a1,b1,a2,b2,[crs], a1, b1,a2和b2表示坐标值。可选crs参数用于为 bbox 坐标命名 CRS(如果它们与 featureTypes 原生 CRS 不同)。传递给 BBOX 参数的坐标顺序取决于使用的坐标系(这就是为什么不使用坐标语法的原因用x或表示y。)
要为返回的要素指定坐标系,请附加srsName=CRS到 WFS 请求,其中CRS是您希望使用的坐标参考系。
至于指定边界框的哪些角,唯一的要求是首先提供底角(左或右)。例如,左下角和右上角,或右下角和左上角。
基于边界框返回特征的示例请求(使用 featureTypes 原生 CRS):

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  srsName=CRS&
  bbox=a1,b1,a2,b2

要使用具有不同于 featureTypes 原生 CRS 的 CRS 的边界框来请求特征:

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetFeature&
  typeNames=namespace:featuretype&
  srsName=CRS&
  bbox=a1,b1,a2,b2,CRS

LockFeature

LockFeature操作提供了一种长期的特征锁定机制,以确保编辑事务的一致性。如果一个客户端获取一个特性并在将其提交回 WFS 之前进行了一些更改,锁会阻止其他客户端对同一特性进行任何更改,从而确保可以序列化的事务。如果 WFS 服务器支持此操作,则会在服务器的 GetCapabilities 响应中报告。
实际上,很少有客户端支持这种操作。

Transaction

Transaction操作可以创建、修改和删除 WFS 发布的要素。每个事务将包含零个或多个插入、更新和删除元素,每个事务元素按顺序执行。每个 GeoServer 事务都是_原子_的,这意味着如果任何元素失败,事务就会被放弃,数据不会改变。支持事务的 WFS 服务器有时称为 WFS-T 服务器。GeoServer 完全支持事务。
有关事务语法的更多信息,请参见WFS 规范GeoServer 示例请求

GetGMLObject(此操作仅对WFS 版本 1.1.0有效)

GetGMLObject操作接受 GML 对象(要素或几何)的标识符并返回该对象此操作仅在需要复杂特征的情况下才相关,允许客户端仅提取复杂特征的一部分嵌套属性。因此,客户端应用程序并未广泛使用此操作。

GetPropertyValue(此操作仅对WFS 版本 2.0.0有效)

GetPropertyValue操作从数据源中检索由查询标识的给定特征集的特征属性值或复杂特征属性值的一部分。
此示例仅检索topp:states图层中要素的地理内容:

http://example.com/geoserver/wfs?
  service=wfs&
  version=2.0.0&
  request=GetPropertyValue&
  typeNames=topp:states&
  valueReference=the_geom

要检索不同属性的值,请更改valueReference参数。

GetFeatureWithLock(此操作仅对WFS 版本 2.0.0有效)

GetFeatureWithLock操作类似于GetFeature操作,不同之处在于当从 WFS 服务器返回特征集时,特征也被锁定,为后续事务操作准备。
此 POST 示例检索topp:states图层的特征,但另外将这些特征锁定五分钟

<wfs:GetFeatureWithLock service='WFS' version='2.0.0'
                        handle='GetFeatureWithLock-tc1' expiry='5' resultType='results'
                        xmlns:topp='http://www.openplans.org/topp'
                        xmlns:fes='http://www.opengis.net/fes/2.0'
                        xmlns:wfs='http://www.opengis.net/wfs/2.0'
                        valueReference='the_geom'>
  <wfs:Query typeNames='topp:states'/>
</wfs:GetFeatureWithLock>

要调整锁定时间,请更改expiry参数。

CreateStoredQuery(此操作仅对WFS 版本 2.0.0有效)

CreateStoredQuery操作在WFS 服务器上创建存储查询。存储查询的定义被编码在StoredQueryDefinition参数中,并被赋予一个 ID 以供参考。
此 POST 示例创建一个新的存储查询(称为“myStoredQuery”),将图层过滤到给定感兴趣区域 ( )topp:states内的那些特征:${AreaOfInterest}

<wfs:CreateStoredQuery service='WFS' version='2.0.0'
 xmlns:wfs='http://www.opengis.net/wfs/2.0'
 xmlns:fes='http://www.opengis.org/fes/2.0'
 xmlns:gml='http://www.opengis.net/gml/3.2'
 xmlns:myns='http://www.someserver.com/myns'
 xmlns:topp='http://www.openplans.org/topp'>
  <wfs:StoredQueryDefinition id='myStoredQuery'>
    <wfs:Parameter name='AreaOfInterest' type='gml:Polygon'/>
    <wfs:QueryExpressionText
     returnFeatureTypes='topp:states'
     language='urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression'
     isPrivate='false'>
      <wfs:Query typeNames='topp:states'>
        <fes:Filter>
          <fes:Within>
            <fes:ValueReference>the_geom</fes:ValueReference>
             ${AreaOfInterest}
          </fes:Within>
        </fes:Filter>
      </wfs:Query>
    </wfs:QueryExpressionText>
  </wfs:StoredQueryDefinition>
</wfs:CreateStoredQuery>

DropStoredQuery(此操作仅对WFS 版本 2.0.0有效)

DropStoredQuery操作删除以前由 CreateStoredQuery 操作创建的存储查询。该请求接受要删除的查询的 ID。
此示例将删除 ID 为 的存储查询myStoredQuery:

http://example.com/geoserver/wfs?
  request=DropStoredQuery&
  storedQuery_Id=myStoredQuery

ListStoredQueries(此操作仅对WFS 版本 2.0.0有效)

ListStoredQueries操作返回当前由 WFS 服务器维护的存储查询的列表。
此示例列出了服务器上所有存储的查询:

http://example.com/geoserver/wfs?
  request=ListStoredQueries&
  service=wfs&
  version=2.0.0

DescribeStoredQuery(此操作仅对WFS 版本 2.0.0有效)

DescribeStoredQuery操作返回有关 WFS 服务器维护的每个存储查询的详细元数据。可以通过提供特定查询的 ID 来请求对单个查询的描述。如果未提供 ID,则描述所有查询。
此示例描述了 ID 为 的现有存储查询urn:ogc:def:query:OGC-WFS::GetFeatureById:

http://example.com/geoserver/wfs?
  request=DescribeStoredQueries&
  storedQuery_Id=urn:ogc:def:query:OGC-WFS::GetFeatureById

WFS-G

WFS-G是WFS的扩展。
地名词典 ( WFS-G ) 由开放地理空间联盟 ( OGC ) 定义为特定的 WFS 服务,其中空间信息的定位由文本请求(基于地理名称)确定
该标准定义了三个动作:

  1. GetCapabilities,它返回正式的描述或元数据服务以确定可用的选项。它由两个主要元素组成:FeatureTypeList 和 FilterCapabilities。
  2. GetFeature它根据空间查询返回先前输入到服务器的地理实体或要素。它还依赖于其他合适的过滤器,WFS 使用这些过滤器来取回包含整个几何图形和相关属性的搜索结果。此操作的主要元素是类似于 GetFeatureById 操作的 StoredQuery。
  3. DescribeFeatureType它返回一个 XML 图,描述 WFS 服务的数据类型,并指出查询或事务中对象的请求代码。

参考资料

https://idearagon.aragon.es/portal/en/wfsg.jsp?static=t
http://learningzone.rspsoc.org.uk/index.php/Learning-Materials/Introduction-to-OGC-Standards/5.2-Gazetteer-OGC-standards
https://docs.geoserver.org/latest/en/user/services/wfs/reference.html

GetCapabilities

https://idearagon.aragon.es/toponimiaWFS/services?service=WFS&version=1.1.0&request=GetCapabilities

<?xml version="1.0" encoding="UTF-8"?>
<WFS_Capabilities
    xmlns="http://www.opengis.net/wfs"
    xmlns:gml="http://www.opengis.net/gml"
    xmlns:ogc="http://www.opengis.net/ogc"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" updateSequence="10" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
    <ows:ServiceIdentification
        xmlns:ows="http://www.opengis.net/ows">
        <ows:Title>IDEAragon_WFS</ows:Title>
        <ows:Abstract>Servicio WFS del Nomenclátor Geográfico del Gobierno de Aragón, es un proyecto del Centro de Información Territorial de Aragón, contiene topónimos e identificadores geográficos georreferenciados con una geometría puntual mediante coordenadas X e Y, huso 30 en el Sistema de Referencia ETRS 89 (EPSG: 25830) </ows:Abstract>
        <ows:Keywords>
            <ows:Keyword>Aragon</ows:Keyword>
            <ows:Keyword>ideAragon</ows:Keyword>
            <ows:Keyword>WFS</ows:Keyword>
            <ows:Keyword>Toponimia</ows:Keyword>
            <ows:Keyword>Nomenclator</ows:Keyword>
            <ows:Keyword>Gazetteer</ows:Keyword>
            <ows:Keyword>Nombres Geograficos</ows:Keyword>
            <ows:Keyword>1.1.0</ows:Keyword>
            <ows:Keyword>ideAragon</ows:Keyword>
        </ows:Keywords>
        <ows:ServiceType>WFS</ows:ServiceType>
        <ows:ServiceTypeVersion>1.1.0</ows:ServiceTypeVersion>
        <ows:Fees>None</ows:Fees>
        <ows:AccessConstraints>None</ows:AccessConstraints>
    </ows:ServiceIdentification>
    <ows:ServiceProvider
        xmlns:ows="http://www.opengis.net/ows">
        <ows:ProviderName>CINTA</ows:ProviderName>
        <ows:ProviderSite xlink:href="http://sitar.aragon.es/" xlink:type="simple"/>
        <ows:ServiceContact>
            <ows:IndividualName>Sergio Monteagudo</ows:IndividualName>
            <ows:PositionName>deegree WFS</ows:PositionName>
            <ows:ContactInfo>
                <ows:Phone>
                    <ows:Voice>976 716 919</ows:Voice>
                    <ows:Facsimile>976 714 357</ows:Facsimile>
                </ows:Phone>
                <ows:Address>
                    <ows:DeliveryPoint>Edificio Pignatelli</ows:DeliveryPoint>
                    <ows:City>Zaragoza</ows:City>
                    <ows:AdministrativeArea>Aragon</ows:AdministrativeArea>
                    <ows:PostalCode>50297</ows:PostalCode>
                    <ows:Country>España</ows:Country>
                    <ows:ElectronicMailAddress>cinta@aragon.es</ows:ElectronicMailAddress>
                </ows:Address>
                <ows:HoursOfService>9am - 2pm</ows:HoursOfService>
                <ows:ContactInstructions>Email</ows:ContactInstructions>
            </ows:ContactInfo>
            <ows:Role>PointOfContact</ows:Role>
        </ows:ServiceContact>
    </ows:ServiceProvider>
    <ows:OperationsMetadata
        xmlns:ows="http://www.opengis.net/ows">
        <ows:Operation name="GetFeature">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://localhost:8080/deegree-wfs/services?" xlink:type="simple"/>
                    <ows:Post xlink:href="http://localhost:8080/deegree-wfs/services" xlink:type="simple"/>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="DescribeFeatureType">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://localhost:8080/deegree-wfs/services?" xlink:type="simple"/>
                    <ows:Post xlink:href="http://localhost:8080/deegree-wfs/services" xlink:type="simple"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="outputFormat">
                <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="GetCapabilities">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://localhost:8080/deegree-wfs/services?" xlink:type="simple"/>
                    <ows:Post xlink:href="http://localhost:8080/deegree-wfs/services" xlink:type="simple"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="AcceptVersions">
                <ows:Value>1.1.0</ows:Value>
                <ows:Value>1.0.0</ows:Value>
            </ows:Parameter>
            <ows:Parameter name="AcceptFormats">
                <ows:Value>application/xml</ows:Value>
            </ows:Parameter>
            <ows:Parameter name="Sections">
                <ows:Value>ServiceIdentification</ows:Value>
                <ows:Value>ServiceProvider</ows:Value>
                <ows:Value>OperationsMetadata</ows:Value>
                <ows:Value>FeatureTypeList</ows:Value>
                <ows:Value>ServesGMLObjectTypeList</ows:Value>
                <ows:Value>SupportsGMLObjectTypeList</ows:Value>
                <ows:Value>Filter_Capabilities</ows:Value>
            </ows:Parameter>
        </ows:Operation>
        <ows:Operation name="GetFeatureWithLock">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://localhost:8080/deegree-wfs/services?" xlink:type="simple"/>
                    <ows:Post xlink:href="http://localhost:8080/deegree-wfs/services" xlink:type="simple"/>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="LockFeature">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://localhost:8080/deegree-wfs/services?" xlink:type="simple"/>
                    <ows:Post xlink:href="http://localhost:8080/deegree-wfs/services" xlink:type="simple"/>
                </ows:HTTP>
            </ows:DCP>
        </ows:Operation>
        <ows:Operation name="Transaction">
            <ows:DCP>
                <ows:HTTP>
                    <ows:Get xlink:href="http://localhost:8080/deegree-wfs/services?" xlink:type="simple"/>
                    <ows:Post xlink:href="http://localhost:8080/deegree-wfs/services" xlink:type="simple"/>
                </ows:HTTP>
            </ows:DCP>
            <ows:Parameter name="inputFormat">
                <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
            </ows:Parameter>
            <ows:Parameter name="idgen">
                <ows:Value>GenerateNew</ows:Value>
                <ows:Value>UseExisting</ows:Value>
            </ows:Parameter>
            <ows:Parameter name="releaseAction">
                <ows:Value>ALL</ows:Value>
            </ows:Parameter>
        </ows:Operation>
        <ows:Parameter name="srsName">
            <ows:Value>EPSG:25830</ows:Value>
        </ows:Parameter>
        <ows:Constraint name="LocalTraverseXLinkScope">
            <ows:Value>0</ows:Value>
            <ows:Value>*</ows:Value>
        </ows:Constraint>
        <ows:Constraint name="RemoteTraverseXLinkScope">
            <ows:Value>0</ows:Value>
            <ows:Value>*</ows:Value>
        </ows:Constraint>
        <ows:Constraint name="DefaultMaxFeatures">
            <ows:Value>15000</ows:Value>
        </ows:Constraint>
        <ows:Constraint name="DefaultLockExpiry">
            <ows:Value>5</ows:Value>
        </ows:Constraint>
    </ows:OperationsMetadata>
    <FeatureTypeList>
        <Operations/>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:Nombres</Name>
            <Title>Nombres</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:nombres</Name>
            <Title>nombres</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:fuentes</Name>
            <Title>fuentes</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:Atributos</Name>
            <Title>Atributos</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:Entidades</Name>
            <Title>Entidades</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:Fuentes</Name>
            <Title>Fuentes</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:atributos</Name>
            <Title>atributos</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
            </ows:WGS84BoundingBox>
        </FeatureType>
        <FeatureType
            xmlns:app="http://www.deegree.org/app">
            <Name>app:entidades</Name>
            <Title>entidades</Title>
            <DefaultSRS>EPSG:25830</DefaultSRS>
            <OtherSRS>EPSG:25831</OtherSRS>
            <OtherSRS>EPSG:4937</OtherSRS>
            <Operations>
                <Operation>Query</Operation>
            </Operations>
            <OutputFormats>
                <Format>text/xml; subtype=gml/3.1.1</Format>
            </OutputFormats>
            <ows:WGS84BoundingBox
                xmlns:ows="http://www.opengis.net/ows">
                <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
                <ows:UpperCorner>180.0 90.0</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:LineString</ogc:GeometryOperand>
                <ogc:GeometryOperand>gml:Polygon</ogc:GeometryOperand>
            </ogc:GeometryOperands>
            <ogc:SpatialOperators>
                <ogc:SpatialOperator name="Crosses"/>
                <ogc:SpatialOperator name="Intersects"/>
                <ogc:SpatialOperator name="BBOX"/>
                <ogc:SpatialOperator name="Overlaps"/>
                <ogc:SpatialOperator name="Touches"/>
                <ogc:SpatialOperator name="Beyond"/>
                <ogc:SpatialOperator name="Within"/>
                <ogc:SpatialOperator name="Equals"/>
                <ogc:SpatialOperator name="Contains"/>
                <ogc:SpatialOperator name="Disjoint"/>
            </ogc:SpatialOperators>
        </ogc:Spatial_Capabilities>
        <ogc:Scalar_Capabilities>
            <ogc:LogicalOperators/>
            <ogc:ComparisonOperators>
                <ogc:ComparisonOperator>LessThanEqualTo</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>LessThan</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>NullCheck</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>NotEqualTo</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>GreaterThan</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>GreaterThanEqualTo</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>Like</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>EqualTo</ogc:ComparisonOperator>
                <ogc:ComparisonOperator>Between</ogc:ComparisonOperator>
            </ogc:ComparisonOperators>
            <ogc:ArithmeticOperators>
                <ogc:SimpleArithmetic/>
            </ogc:ArithmeticOperators>
        </ogc:Scalar_Capabilities>
        <ogc:Id_Capabilities>
            <ogc:EID/>
            <ogc:FID/>
        </ogc:Id_Capabilities>
    </ogc:Filter_Capabilities>
</WFS_Capabilities>

GetFeature

https://idearagon.aragon.es/toponimiaWFS/services?service=WFS&version=1.1.0&request=GetFeature&typeName=app:Nombres

返回值太长这里就不贴了

DescribeFeatureType

https://idearagon.aragon.es/toponimiaWFS/services?service=WFS&version=1.1.0&request=DescribeFeatureType&typename=app:Nombres

<xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:app="http://www.deegree.org/app"
    xmlns:deegreewfs="http://www.deegree.org/wfs"
    xmlns:dgjdbc="http://www.deegree.org/jdbc"
    xmlns:gml="http://www.opengis.net/gml"
    xmlns:ogc="http://www.opengis.net/ogc"
    xmlns:wfs="http://www.opengis.net/wfs" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.deegree.org/app">
    <xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd"/>
    <xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd"/>
    <!--  configuration for the persistence backend to be used  -->
    <!--  ==============================================================  -->
    <xsd:element name="Nombres" substitutionGroup="gml:_Feature" type="app:NombresType"></xsd:element>
    <!--  ==============================================================  -->
    <xsd:complexType name="NombresType">
        <xsd:complexContent>
            <xsd:extension base="gml:AbstractFeatureType">
                <xsd:sequence>
                    <xsd:element name="geometry" type="gml:GeometryPropertyType"></xsd:element>
                    <xsd:element name="gid" type="xsd:integer"></xsd:element>
                    <xsd:element name="identidad" type="xsd:decimal"></xsd:element>
                    <xsd:element name="nombre" type="xsd:string"></xsd:element>
                    <xsd:element name="idioma" type="xsd:string"></xsd:element>
                    <xsd:element name="clasenombr" type="xsd:string"></xsd:element>
                    <!-- xsd:element name="estatus" type="xsd:string"><xsd:annotation><xsd:appinfo><deegreewfs:IdentityPart>true</deegreewfs:IdentityPart><deegreewfs:Content><deegreewfs:MappingField field="estatus" type="VARCHAR"/></deegreewfs:Content></xsd:appinfo></xsd:annotation></xsd:element -->
                    <xsd:element name="fuente" type="xsd:decimal"></xsd:element>
                    <xsd:element name="tituloFuente" type="xsd:string"></xsd:element>
                    <xsd:element name="fuente_id" type="xsd:decimal"></xsd:element>
                    <xsd:element name="fuente_ref" type="xsd:string"></xsd:element>
                    <xsd:element name="xutm" type="xsd:double"></xsd:element>
                    <xsd:element name="yutm" type="xsd:double"></xsd:element>
                    <xsd:element name="huso" type="xsd:string"></xsd:element>
                    <xsd:element name="sistreferencia" type="xsd:string"></xsd:element>
                    <xsd:element name="cmunine" type="xsd:integer"></xsd:element>
                    <xsd:element name="localidad" type="xsd:string"></xsd:element>
                    <xsd:element name="fonetica" type="xsd:string"></xsd:element>
                    <xsd:element name="busqueda" type="xsd:string"></xsd:element>
                    <xsd:element name="ruralurban" type="xsd:string"></xsd:element>
                    <xsd:element name="join_entidades" type="gml:FeaturePropertyType"></xsd:element>
                    <!-- xsd:element name="join_fuentes" type="gml:FeaturePropertyType"><xsd:annotation><xsd:appinfo><deegreewfs:Content type="app:Fuentes"><deegreewfs:Relation><deegreewfs:From><deegreewfs:MappingField field="fuente" type="NUMERIC"/></deegreewfs:From><deegreewfs:To><deegreewfs:MappingField field="fuente" type="NUMERIC"/></deegreewfs:To></deegreewfs:Relation></deegreewfs:Content></xsd:appinfo></xsd:annotation></xsd:element -->
                    <xsd:element name="join_atributos" type="gml:FeaturePropertyType"></xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <!--  ==============================================================  -->
    <xsd:element name="Entidades" substitutionGroup="gml:_Feature" type="app:EntidadesType"></xsd:element>
    <!--  ==============================================================  -->
    <xsd:complexType name="EntidadesType">
        <xsd:complexContent>
            <xsd:extension base="gml:AbstractFeatureType">
                <xsd:sequence>
                    <xsd:element name="geometry" type="gml:GeometryPropertyType"></xsd:element>
                    <xsd:element name="gid" type="xsd:integer"></xsd:element>
                    <xsd:element name="identidad" type="xsd:decimal"></xsd:element>
                    <xsd:element name="fuente" type="xsd:decimal"></xsd:element>
                    <xsd:element name="cmunine" type="xsd:integer"></xsd:element>
                    <xsd:element name="etiqueta" type="xsd:string"></xsd:element>
                    <xsd:element name="localidad" type="xsd:string"></xsd:element>
                    <xsd:element name="fonetica" type="xsd:string"></xsd:element>
                    <xsd:element name="nivel" type="xsd:decimal"></xsd:element>
                    <xsd:element name="observacio" type="xsd:string"></xsd:element>
                    <xsd:element name="xutm" type="xsd:double"></xsd:element>
                    <xsd:element name="yutm" type="xsd:double"></xsd:element>
                    <xsd:element name="sist_ref" type="xsd:string"></xsd:element>
                    <xsd:element name="busqueda" type="xsd:string"></xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <!--  ==============================================================  -->
    <xsd:element name="Fuentes" substitutionGroup="gml:_Feature" type="app:FuentesType"></xsd:element>
    <!--  ==============================================================  -->
    <xsd:complexType name="FuentesType">
        <xsd:complexContent>
            <xsd:extension base="gml:AbstractFeatureType">
                <xsd:sequence>
                    <xsd:element name="gid" type="xsd:integer"></xsd:element>
                    <xsd:element name="fuente" type="xsd:decimal"></xsd:element>
                    <xsd:element name="fecha_pub" type="xsd:string"></xsd:element>
                    <xsd:element name="titulo" type="xsd:string"></xsd:element>
                    <xsd:element name="cita_bib" type="xsd:string"></xsd:element>
                    <xsd:element name="url" type="xsd:string"></xsd:element>
                    <xsd:element name="url_cache" type="xsd:string"></xsd:element>
                    <xsd:element name="meta" type="xsd:string"></xsd:element>
                    <xsd:element name="url_meta" type="xsd:string"></xsd:element>
                    <xsd:element name="contador" type="xsd:decimal"></xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <!--  ==============================================================  -->
    <xsd:element name="Atributos" substitutionGroup="gml:_Feature" type="app:AtributosType"></xsd:element>
    <!--  ==============================================================  -->
    <xsd:complexType name="AtributosType">
        <xsd:complexContent>
            <xsd:extension base="gml:AbstractFeatureType">
                <xsd:sequence>
                    <xsd:element name="gid" type="xsd:integer"></xsd:element>
                    <xsd:element name="identidad" type="xsd:decimal"></xsd:element>
                    <xsd:element name="fuente" type="xsd:decimal"></xsd:element>
                    <xsd:element name="fuente_id" type="xsd:decimal"></xsd:element>
                    <xsd:element name="tipoatribu" type="xsd:string"></xsd:element>
                    <xsd:element name="valoratrib" type="xsd:string"></xsd:element>
                    <xsd:element name="unidadatri" type="xsd:string"></xsd:element>
                    <xsd:element name="fechaatrib" type="xsd:decimal"></xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:schema>

标签:GetFeature,EPSG,request,wfs,WFS,2.0,词典,地名
来源: https://www.cnblogs.com/iminifly/p/16230113.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有