Hi, all. Is there a way to pull back features w/o pulling back the geometries? I have a set of town parcels, and I'd like to ask geoserver for only, say, the owner of a parcel given a certain cql_filter / BBOX combo. WFS works great, but I don't want the geometries to come across the wire -- they take up too much space and I don't really need them to list just a handful of fields in a table.
TIA.
Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 : fax
charlton@anonymised.com
P.O. Box 50960
Columbia, SC 29250
On 3 March 2011 14:21, Charlton Galvarino <charlton@anonymised.com> wrote:
Hi, all. Is there a way to pull back features w/o pulling back the geometries? I have a set of town parcels, and I'd like to ask geoserver for only, say, the owner of a parcel given a certain cql_filter / BBOX combo. WFS works great, but I don't want the geometries to come across the wire -- they take up too much space and I don't really need them to list just a handful of fields in a table.
<wfs:PropertyName>..</wfs:PropertyName>
See the WFS BBOX demos:
<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
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">
<wfs:Query typeName="topp:states">
<wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName>
<wfs:PropertyName>topp:PERSONS</wfs:PropertyName>
<ogc:Filter>
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:lowerCorner>-75.102613 40.212597</gml:lowerCorner>
<gml:upperCorner>-72.361859 41.512517</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
Ian
--
Ian Turton