[Geoserver-users] Compare attributes between different layers?

(please keep questions on the public mailing list)

An example of a polygon filter in an xml style filter:

  <ogc:Filter>
    <ogc:BBOX>
       <ogc:PropertyName>the_geom</ogc:PropertyName>
       <gml:Polygon>
         <gml:outerBoundaryIs>
           <gml:LinearRing>
             <gml:coordinates>..</gml:coordinates>
           <gml:LinearRing>
         </gml:outerBoundaryIs>
       </gml:Polygon>
    </ogc:BBOX>
  </ogc:Filter>

Yes, you should be able to use a CQL filter in a WFS request. Something like the following:

WITHIN(the_geom,polygon((...)))

Hope that helps.

-Justin

Swärd Mårten wrote:

Hello Justin, and thanks for your answer! You don't happen to have a example of a query with a polygon filter? =)

Can you do a WFS-query with a CQL-statement? Something like "SUM(population) WHERE the_geom WITHIN 'polygon(54 18, 54 17 .. ..)'

Thanks again!
- Mårten

************************************************************************
Mvh:
Mårten Swärd
Systemutvecklare/Webbutvecklare, ITs
SMHI, Sveriges Meteorologiska och Hydrologiska Institut
Tel: +46 11 495 8469

-----Ursprungligt meddelande-----
Från: Justin Deoliveira [mailto:jdeolive@anonymised.com] Skickat: den 18 mars 2008 16:13
Till: Swärd Mårten
Kopia: geoserver-users@lists.sourceforge.net
Ämne: Re: [Geoserver-users] Compare attributes between different layers?

Unfortunately not with a single WFS. You would have to write some sort of script or program to make the first request, then execute a second query with a polygon filter or something like that.

-Justin

Swärd Mårten wrote:

Hello!

Is it possible to make queries and compare attributes between two different layers? For example if I have a layer with population/km2 and a layer with counties (polygon) and then want to check how many people that lives I a specific county.

Is this possible (SLD, CQL)? If yes, does anyone have an example how to do this?

Best reagards: Mårten

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

!DSPAM:4007,47dfb8dd194581137850744!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,47dfb8dd194581137850744!