[Geoserver-users] can I pull back a set of GetFeature's sans geometries

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&quot;
  xmlns:wfs="http://www.opengis.net/wfs&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:gml="http://www.opengis.net/gml&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot;&gt;
  <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&quot;&gt;
           <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

Genius. Thanks, Ian.

-----Original Message-----
From: Ian Turton [mailto:ijturton@…84…]
Sent: Thursday, March 03, 2011 2:33 PM
To: Charlton Galvarino
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] can I pull back a set of GetFeature's sans
geometries

On 3 March 2011 14:21, Charlton Galvarino <charlton@...3900...> 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&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
                     http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot;&gt;
<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&quot;&gt;
          <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