The collectGeometries function is really intended to operate on the result
of the queryCollection function - I'm not sure it's possible to pass it a
literal geometry.  And if it is, the argument will need to be in correct
Filter XML syntax (ie GML-style geometry).

If the filter is just against a constant geometry value, this isn't really
cross-layer filtering.  You can just use a plain Filter or CQL filter
expression.

On Tue, May 1, 2012 at 8:06 PM, Alexandre Djioev <[email protected]> wrote:

> Hi everyone,
>
> I am playing with cross layer filter plugin and trying to find a way how
> to pass geometry strings to collectGeometries function. Docs say that this
> function takes a list of geometries as a parameter. I tried following:
>
>
> <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"; service="WFS"
> version="1.1.0" maxFeatures="50" xsi:schemaLocation="
> http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   <wfs:Query typeName="feature:bugsites" srsName="EPSG:900913"
> xmlns:feature="http://www.openplans.org/spearfish";>
>     <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
>       <ogc:Intersects>
>         <ogc:PropertyName>the_geom</ogc:PropertyName>
>         <ogc:Function name="collectGeometries">
>           <ogc:Literal>POLYGON((-11559316.63916
> 5527461.416368,-11557654.133795 5528092.0218513,-11558055.428193
> 5525646.0369466,-11559316.63916 5527461.416368)),POLYGON((-11557730.570823
> 5531053.9566968,-11556622.233913 5529639.8716738,-11554978.837805
> 5530308.6956711,-11555150.821119 5531245.0492675,-11557730.570823
> 5531053.9566968))</ogc:Literal>
>         </ogc:Function>
>       </ogc:Intersects>
>     </ogc:Filter>
>   </wfs:Query>
> </wfs:GetFeature>
>
>
> but it doesn't work. So question is how do I pass geometry strings in?
>
> Thanks Alex
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to