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.

If I have an attribute table with columns A B C D, is it possible to move the columns to different positions, say, B C A D? When making a new column with the field calculator it would be useful to put it somewhere other than last position or to be able to move key columns close to it.

share|improve this question

2 Answers 2

up vote 9 down vote accepted

The Plugin 'Table Manager' does what you want.

share|improve this answer

As far as I am aware the Table Manager does not handle layers in SHP format. So it also depends on where you data sits. If you data is in SHP format, you could open the corresponding DBF file in Excel or Open/Libre Office and change the position of the columns.

share|improve this answer
    
The table manager works perfectly with shapefiles, you don't even have to save the changes to a new file but can keep the current one. Working in OO/Libre would work just fine, too, but take care not to resort your dbf-file without being able to restore the original sorting (e.g. by using a feature id field) or the shapefile will show wrong attributes for each feature. –  SAnderka Aug 16 '12 at 13:41
    
I have had mixed results with fooling with the .shp file's .dbf. And once it gets altered there seems to be no recovery. If I had my files in a spatial database (which I know nothing about) would I be able to arrange the columns? –  HealthMaps Aug 16 '12 at 20:18
    
I misunderstood what you were saying. I just tried to find TableManager and I found the .zip on pyqgis.org/repo/contributed however it does not appear in my plugin manager list which includes the offical one. I have had this problem before, Sextante did not appear until I used QGIS on another machine. Never did install it correctly. –  HealthMaps Aug 16 '12 at 20:42
    
Simpliest way is to add pyqgis.org/repo/contributed to the list of repos (Plugins->Install Python Plugins, second tab, Add..) and make sure it is checked active in Plugins->Plugin Manager -- or what its called in English version... –  AndreJ Aug 17 '12 at 14:20

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.