On Fri, May 24, 2013 at 9:53 AM, Frank Gasdorf
<[email protected]>wrote:

> I tested against a public available GeoServer instance (which is version
> 2.3.1) from OpenGeo with the following URL
>
>
> http://demo.opengeo.org/geoserver/topp/wfs?outputFormat=csv&propertyName=STATE
>
>
> and POST :
>
> <wfs:GetFeature service="WFS" version="1.0.0"
>   xmlns:topp="http://www.openplans.org/topp";
>   xmlns:wfs="http://www.opengis.net/wfs";
>   xmlns:ogc="http://www.opengis.net/ogc";
>   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:tasmania_state_boundaries" >
>     <ogc:Filter>
>        <ogc:FeatureId fid="tasmania_state_boundaries.1"/>
>     </ogc:Filter>
>     </wfs:Query>
> </wfs:GetFeature>
>
>
> and can confirm that more properties than the requested are in the
> resulting csv response. Seems to me that the propertyName property doesn't
> work for CSV ouputFormat correctly (maybe unused in this case). Could you
> raise a bug report in JIRA?
>

Please wait a second. Can you confirm that the extra properties returned
have minOccurs = 1 in the
DescribeFeatureType output?
If they do, it's working as required, mandatory properties in the schema
cannot be stripped out of
the output, it's by WFS spec.

GeoServer reflects the mandatory properties from the database structure
normally, so a way to
make them optional is to mark the columns as nullable.
We presently don't have a way to configure it otherwise from the GUI, but
if memory serves me
right this can be done by writing some schemas by hand:
http://docs.geoserver.org/stable/en/user/services/wfs/schemamapping.html

Cheers
Andrea


-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to