Hi list,
I would like to know if the WPSExecute format support references to a
WFS query with a filter, something like the attached file (I manually
created). I'm using the WPSClient object, which is simple to use, and
I'm currently overriding the WPSProcess 'setInputData' method in order
to support having a OpenLayers.Protocol.WFS.v1 object defined as the
'data' parameter value, which sets the input.reference accordingly as such:
input.reference = {
mimeType: "text/xml; subtype=wfs-collection/1.0",
href: data.url,
method: "POST",
body: {
wfs: {
version: "1.0.0",
outputFormat: "GML2",
featureType: data.featureType
}
}
}
if (data instanceof OpenLayers.Protocol.WFS.v1_1_0) {
input.reference.mimeType = "text/xml; subtype=wfs-collection/1.1";
input.reference.body.wfs.version = "1.1.0";
}
The above produces the <wfs:GetFeature> with a single <wfs:Query>
node. What I need to figure out is how use the filters that are set in
the protocol to produce the <ogc:Filter> to add to the query node. Does
OpenLayers support that ? Any hint ?
I'm using OpenLayers latest version from GitHub.
Thanks,
--
Alexandre Dubé
T: +1 418-696-5056 #203
http://www.mapgears.com/
<wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" xmlns:xlink="http://www.w3.org/1999/xlink">
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">Boundary</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">InputPolygon</ows:Identifier>
<ows:Title xmlns:ows="http://www.opengis.net/ows/1.1">Polygon to compute boundary</ows:Title>
<wps:Reference mimeType="text/xml; subtype=wfs-collection/1.1" xlink:href="http://dev8.mapgears.com/cgi-bin/tinyows-trunk" method="POST">
<wps:Body>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" outputFormat="GML2">
<wfs:Query typeName="feature:drainage" xmlns:feature="http://localhost">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326">
<gml:coordinates decimal="." cs="," ts=" ">-8021606.5626805,6101508.8327191 -7975132.8494914,6143090.5760988</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="application/json">
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">Result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users