[Geoserver-users] [Re: WFS GetFeature - problem selecting subset of properties]

Hello,

I posted an email last week describing my problems selecting particular
properties from a WFS GetFeature request. I forgot to mention a critical
point - namely that I see the same behavior in the supplied sample
requests. Some of them specifically select for only a couple properties
(i.e. GetFeature with BBOX or Between examples) and yet the results on my
installation ALWAYS return every property. These are namespaces,
datastores, and features that were not set up by me. This leads me to
believe something is pretty wrong with my installation or the code, but I
don't know what! I've been through the FAQs, the email archives, and
whatever I could find on the web, but am still perplexed. If anyone knows
what is going on here, I would appreciate a quick tip.

Thanks!
Chris

---------------------------- Original Message ----------------------------
Subject: [Geoserver-users] WFS GetFeature - problem selecting subset of
properties
From: stolte@anonymised.com
Date: Fri, September 29, 2006 9:55 am
To: geoserver-users@lists.sourceforge.net
--------------------------------------------------------------------------

Hello,

I am relatively new to Geoserver, and am attempting create a basic
(non-transactional) WFS that uses an Oracle datastore. Note that this is
not Oracle Locator or Oracle Spatial, just a plain old table. I've set up
the server itself (v. 1.3.4a) as well as the various data and FeatureType
configurations, and can successfully perform GetCapabilities,
DescribeFeatureType, and some GetFeature requests. However, I am having
the same problem noted below by F. Zuriaga (geoserver-users, msg
id=12353586), namely that the response always includes ALL properties,
regardless of whether I ask for specific ones or not. I've studied the
OGC-WFS spec document, and am pretty sure my requests are formatted
correctly. For example:

<?xml version="1.0" ?>
<wfs:GetFeature service="WFS" version="1.0.0"
  outputFormat="GML2"
  xmlns:uvfac="http://facility.unavco.org/geo&quot;
  xmlns:wfs="http://www.opengis.net/wfs&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
  <wfs:Query typeName="uvfac:MONUMENT">
    <wfs:PropertyName>uvfac:STATION_CODE</wfs:PropertyName>
    <ogc:Filter>
       <PropertyIsGreaterThan>
                <PropertyName>LAT</PropertyName>
                <Literal>38</Literal>
       </PropertyIsGreaterThan>
    </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

Could someone point me in the right direction to a solution? I feel like
I am missing something pretty basic here...I've experienced the same
behavior on two separate installations - both version 1.3.4a of Geoserver:

-binary distribution (w/ Jetty) on Solaris 5.9 (Java 1.4.2_08-b03)
-WAR distribution deployed under Tomcat 5.5.17 on a Windows XP SP1 box
(Java 1.5.0_08).

I work for a non-profit geophysics consortium (www.unavco.org) that is
trying to share some services with the community, and like what I see so
far from the Geoserver project. I'm hoping to resolve this issue and move
forward...

Thanks,
Christopher Stolte

Hello, I have a problem with the DateTime format. I use a postgis data
base,
and the table has a DateTime field. But I don"t want to receibe this
attribute.
The problem is that I can"t select the attributes of features to
receibe,
WFS always send ALL attributes for the features.

<?xml version="1.0" encoding="UTF-8"?>
<GetFeature xmlns="http://www.opengis.net/wfs&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; version="1.0.0" service="WFS"
outputFormat="GML2">
<Query typeName="elFerGis:usuarios">
<ogc:PropertyName>elFerGis:nombre</ogc:PropertyName>
<ogc:PropertyName>elFerGis:dinero</ogc:PropertyName>
<ogc:PropertyName>elFerGis:password</ogc:PropertyName>
</Query>
</GetFeature>

Thanks in advanced:
F.Zuriaga

--
Christopher Stolte | Software Developer
UNAVCO, Inc. 6350 Nautilus Dr. Boulder, CO
303-381-7483