[OpenLayers-Users] "Trimming" attribute table output in .csv

Olivier Terral olivier at geomatic.ch
Wed Jun 20 01:38:03 PDT 2012


Hi Julius,

It's related to geoserver not openlayers. You should post your question on geoserver userslist:

http://geoserver.org/display/GEOS/Mailing+Lists

Or ask on their IRC channel #geoserver

Tschuss

Le 20 juin 2012 à 07:07, Julius Sempio a écrit :

> Good day sires.
> 
> We're trying to play around with Geoserver's GetFeature function to save a .csv file of a feature's attribute fields. The function below does exactly that:
> 
> function generateFeatureTable(feature){
>     var featureTableURL = "http://localhost:8080/geoserver/prism/wfs?REQUEST=GetFeature&SERVICE=WFS&VERSION=1.1.0&TYPENAME=prism:" + feature + "&OUTPUTFORMAT=csv&SRSNAME=epsg:4326";
>     window.open(featureTableURL);
> }
> 
> The problem is that the .csv file is also including "the_geom" as one of its fields. If we make use of the PROPERTYNAME argument to specify the fields we like to include in the table, we would have to specify each and every field name excluding that of "the_geom".
> 
> Any ideas on how to specify the ones you would NOT want to include in the output file?
> 
> We will highly appreciate the insights you can provide us.
> 
> Julius Sempio
> Department of Geodetic Engineering
> University of the Philippines _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

Olivier Terral


 
GEOMATIC Ingénierie SA
Société du groupe Ringier
Chemin des Croisettes 26
1066 Epalinges
www.geomatic.ch
www.thevirtualcity.ch
Tél:: +41 (21) 651 30 00
Fax: +41 (21) 651 30 09




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120620/7d368508/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.gif
Type: image/gif
Size: 5116 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120620/7d368508/attachment-0001.gif>


More information about the Users mailing list