From: Roger B. <syl...@ma...> - 2009-06-30 11:28:37
|
I would like to clip out (cookie cutter) features based on a polygon. I recall being able to do this in PostGIS, but not sure it can be done in WFS in GeoServer? For example, I tried this: <wfs:GetFeature service="WFS" version="1.1.0" outputFormat="OGR-SHP-ZIP" xmlns:ogi="http://ogi.state.ok.us/ogi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml"> <wfs:Query typeName="ogi:streams" srsName="urn:x-ogc:def:crs:EPSG:4326"> <ogc:Filter> <ogc:Intersects> <ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:4326" xmlns:gml="http://www.opengis.net/gml"> <gml:exterior> <gml:LinearRing> <gml:posList>35.500060288095455 -97.50031670710655 35.50006091966824 -97.37531323186303 35.37506446382955 -97.37531129982791 35.375057994022875 -97.50031488896217 35.500060288095455 -97.50031670710655</gml:posList> </gml:LinearRing> </gml:exterior> </gml:Polygon> </ogc:Intersects> </ogc:Filter> </wfs:Query> </wfs:GetFeature> But it returns just the stream features that are wholly within the polygon. I'd rather get all the streams that intersect the polygon, then clips them at the border of the polygon. Is this even possible? Thanks for any insight, Roger Bedell Granada, Spain rog...@op... +34 626 855 662 |