OGC之wfs intersect查询

本文展示了如何使用WFS服务查询特定地理范围内的西藏行政区划图数据。通过定义矩形区域和多边形区域来筛选符合空间条件的数据记录,并采用EPSG:3857坐标系统进行精确匹配。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

矩形:

<?xml version="1.0"?>
<wfs:GetFeature service="WFS" version="1.2.0" outputFormat='JSON' xmlns:西藏行政区划图='http://西藏行政区划图' xmlns:wfs="http://www.opengis.net/wfs" xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
 
    <wfs:Query typeName="西藏行政区划图:name201807151421285">
       <Filter>
                <Intersects>
                        <PropertyName>西藏行政区划图:geom</PropertyName>
                        <gml:Envelope srsName="EPSG:3857">
                                <gml:lowerCorner>9814909.820950106 3373226.4385296027</gml:lowerCorner>
                                <gml:upperCorner>9937209.066206383 3463727.880019247</gml:upperCorner>
                        </gml:Envelope>
                </Intersects>
        </Filter>
    </wfs:Query>
</wfs:GetFeature>

面:


<wfs:GetFeature xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/wfs"
    outputFormat='JSON'
    xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs"
    xmlns:ogc="http://www.opengis.net/ogc" service="WFS" version="1.2.0">
    <wfs:Query typeName="西藏行政区划图:name201807151421285">
        <Filter>
            <Intersects>
                <PropertyName>西藏行政区划图:geom</PropertyName>
                <gml:Polygon srsName="EPSG:3857"><gml:exterior><gml:LinearRing><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">1.0244531079496382E7,3265360.7435 1.0242617662334556E7,3265741.3458 1.024099554559045E7,3266825.2096 1.0239911681833826E7,3268447.3263 1.0239531079496382E7,3270360.7435 1.0239531079496382E7,3292374.6076 1.0239911681833826E7,3294288.0248 1.024099554559045E7,3295910.1415 1.0242617662334556E7,3296994.0053 1.0244531079496382E7,3297374.6076 1.0266544943642508E7,3297374.6076 1.0268458360804334E7,3296994.0053 1.027008047754844E7,3295910.1415 1.0271164341305064E7,3294288.0248 1.0271544943642508E7,3292374.6076 1.0271544943642508E7,3270360.7435 1.0271164341305064E7,3268447.3263 1.027008047754844E7,3266825.2096 1.0268458360804334E7,3265741.3458 1.0266544943642508E7,3265360.7435 1.0244531079496382E7,3265360.7435</gml:coordinates></gml:LinearRing></gml:exterior></gml:Polygon>
            </Intersects>
        </Filter>
    </wfs:Query>
</wfs:GetFeature>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值