OGC之wfs intersect查询
矩形:
<?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>
转载自:https://blog.csdn.net/u_ZJL_FFF/article/details/81564880