Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there anyway I can download shapefile from GeoServer at the same time limit which columns will be downloaded? I know that GeoServer can serve different WFS format and this includes .SHP files. My problem is that some columns must not be made available for download. Is there anyway to limit the columns for download?

Currently I am thinking of writing a server-side script that will execute:

ogr2ogr -f "ESRI Shapefile" download.shp -sql "SELECT allowed_column1, allowed_column2 FROM tablename" PG:"host=host user=user dbname=databasename password=password" 

but I am trying to use what GeoServer already have as much as possible.

Thanks a lot!

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.