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?
Thanks a lot
2013/5/23 HerrFlick <[email protected]>
> I'm trying to download .csv file using GetFeature request (request below).
> Two attributes are specified in propertyName option, but I'm still getting
> two more columns (FID and unitID) in the .csv file. Is there some way to
> get
> rid of them?
>
> http://<%= GeoServer %>:<%= GeoServerPort
>
> %>/geoserver/IF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=<%=
> Layer %>&bbox=" + ext +
> "&propertyName=name,value&outputFormat=csv&viewparams=<%= ViewParams %>
>
> Thanks!
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/wfs-gerefature-propertyName-problem-tp5055307.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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