简要描述
- 输入搜索范围,传入图层和消防栓名称,遍历图层,计算搜索范围内的所有消防栓,返回消防栓结果集
请求URL
http://192.168.19.21:9999/geniusserver/processservices
服务名称
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
burstpointbuffer |
是 |
wkt |
缓冲区范围 |
fire_features |
是 |
Reference |
点图层 |
fire_hydrant_type |
是 |
geojson |
过滤消防栓 |
请求示例
<?xml version="1.0" encoding="utf-8"?>
<wps:Execute xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" service="WPS" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:wcs="http://www.opengis.net/wcs/1.1.1">
<ows:Identifier>pipe:FireHydrantSearch</ows:Identifier>
<wps:DataInputs>
<Input>
<ows:Identifier>burstpointbuffer</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt" crs="EPSG:4326"><![CDATA[POLYGON ((121.24688955691973 37.55684133338002, 121.24689814545557 37.556839795038975, 121.2469061903895 37.55683695797374, 121.2469133825592 37.55683293121104, 121.24691944557364 37.55682786949689, 121.24692414643455 37.55682196734996, 121.2469273044905 37.55681545158629, 121.24692879837914 37.55680857260286, 121.24692857069121 37.55680159475511, 121.24692663017663 37.55679478619781, 121.24692305140826 37.55678840858009, 121.24691797191616 37.55678270699036, 121.24691158690237 37.5567779005377, 121.24690414173939 37.556774173931565, 121.24689592254067 37.556771670383526, 121.24688724516541 37.556770486103645, 121.24687844308026 37.55677066660319, 121.24619044308025 37.55683866663545, 121.2461818545444 37.55684020497653, 121.24617380961048 37.55684304204162, 121.24616661744078 37.55684706880379, 121.24616055442635 37.55685213051664, 121.24615585356545 37.55685803266117, 121.24615269550948 37.556864548421125, 121.24615120162083 37.556871427399386, 121.24615142930877 37.556878405240596, 121.24615336982336 37.55688521379025, 121.24615694859173 37.55689159139968, 121.24616202808382 37.55689729298109, 121.24616841309762 37.55690209942605, 121.24617585826059 37.55690582602578, 121.2461840774593 37.55690832956932, 121.24619275483458 37.55690951384701, 121.24620155691973 37.5569093333478, 121.24688955691973 37.55684133338002))]]></wps:ComplexData>
</wps:Data>
</Input>
<Input>
<ows:Identifier>fire_features</ows:Identifier>
<wps:Reference mimeType="text/xml;subtype=gml/2.1.2" method="POST" xlink:href="http://geniusserver/wfs/shouguangguanxian">
<wps:Body>
<wfs:GetFeature outputFormat="text/xml;subtype=gml/2.1.2" service="WFS" version="1.0.0">
<wfs:Query typeName="yt_wsl"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</Input>
<Input>
<ows:Identifier>fire_hydrant_type</ows:Identifier>
<wps:Data>
<wps:LiteralData>subsid='井内消防栓' or subsid='消防井' or subsid='消防栓'</wps:LiteralData>
</wps:Data>
</Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
返回示例
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"id": "",
"bbox": [40533715.8988, 4020632.5038, 40534117.8963, 4020693.1169],
"geometry": {
"coordinates": [[[[40533716.1208, 4020643.5156], [40534016.0071, 4020688.8719], [40534036.3332, 4020691.2479], [40534064.2752, 4020693.1169], [40534098.2953, 4020692.885], [40534117.8963, 4020691.426], [40534056.0462, 4020632.5038], [40534057.0542, 4020637.8059], [40534054.0132, 4020646.3619], [40534047.6162, 4020652.1219], [40534038.2492, 4020651.2379], [40534024.1452, 4020649.5938], [40534004.9202, 4020646.9108], [40534003.2542, 4020646.6578], [40534003.2941, 4020678.3709], [40534003.2991, 4020682.0119], [40533871.564, 4020660.7507], [40533871.537, 4020660.8147], [40533841.3179, 4020655.8637], [40533841.3179, 4020655.8687], [40533717.1708, 4020635.8325], [40533715.8988, 4020636.4355], [40533716.1208, 4020643.5156]]]],
"type": "MultiPolygon"
},
"properties": {},
...]
}
}{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"id": "",
"bbox": [40533715.8988, 4020632.5038, 40534117.8963, 4020693.1169],
"geometry": {
"coordinates": [[[[40533716.1208, 4020643.5156], [40534016.0071, 4020688.8719], [40534036.3332, 4020691.2479], [40534064.2752, 4020693.1169], [40534098.2953, 4020692.885], [40534117.8963, 4020691.426], [40534056.0462, 4020632.5038], [40534057.0542, 4020637.8059], [40534054.0132, 4020646.3619], [40534047.6162, 4020652.1219], [40534038.2492, 4020651.2379], [40534024.1452, 4020649.5938], [40534004.9202, 4020646.9108], [40534003.2542, 4020646.6578], [40534003.2941, 4020678.3709], [40534003.2991, 4020682.0119], [40533871.564, 4020660.7507], [40533871.537, 4020660.8147], [40533841.3179, 4020655.8637], [40533841.3179, 4020655.8687], [40533717.1708, 4020635.8325], [40533715.8988, 4020636.4355], [40533716.1208, 4020643.5156]]]],
"type": "MultiPolygon"
},
"properties": {},
...]
}
}
返回参数说明
备注