[Qgis-user] How to specify fields to export from QGIS?
Ryan Dalton
ryankdalton at gmail.com
Fri Sep 27 13:08:41 PDT 2013
I've cross-posted this to
http://gis.stackexchange.com/questions/72620/how-to-specify-fields-to-export-from-qgisso
you can get more details if so inclined.
My basic question is this: Is there a way to specify which fields to
export to a spatial layer (ie- shapefile) when you right-click the layer
and choose "Save As"?
I would have expected hidden fields would not export, but that is not the
case. I tried putting code in the "Layer" box of the "Save As" dialog with
no success. I simply cannot figure out a way to include only a select
group of fields to my output layer.
My sample (command line) ogr2ogr code that does work is:
ogr2ogr -f "ESRI Shapefile" test.shp city.shp -sql "select name from city"
but using any combination (that I can think of) of the SQL flag in the QGIS
Layer box has had no effect. How can I get around this issue without
deleting the fields manually after export?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130927/f7716d47/attachment.html>
More information about the Qgis-user
mailing list