Good day sires.

My team is currently working to develop a web-based GIS for a client in the
government and we're using Geoserver 2.1.1 as our server application.

We're trying to play around with Geoserver's GetFeature function to
generate a .csv file of the attribute fields of features saved in a PostGIS
database. 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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to