Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

When i selected some portion of the map in QGIS, in the attribute table the selected features gets highlighted...

How to export the highlighted features from attribute table to an excel file automatically..?

share|improve this question

3 Answers

Simply select the features on the map and use copy-paste (Ctrl-c - Ctrl-v) to copy the data into a text editor or Excel.

share|improve this answer
Great! Didn't know that before :-) – Curlew Jan 25 at 10:06

Or: After you highlighted them->right click on the Layer->Save Selction as->In the Drop-down menue you can choose csv(comma seperated value/ excel) format there. Done

share|improve this answer
Thank u for u r answer..........But my need is to automatically save the selected features as an excel file/csv file with out manual saving......U have any solution for that? – siva krishna Jun 27 '12 at 9:51
I see...I m afraid I have no answer for that. The methods above are pretty fast and require only some seconds.So I m wondering myself, how it may work faster. Let me know,if you find out somehow... – Shepherdjo Jun 27 '12 at 10:18
Can i find the code for QGIS attribute table in python or in C++?If possible pls post the code or the link? – siva krishna Jun 28 '12 at 9:27
I m not familiar with python yet, but maybe you ll find smth here? gis.stackexchange.com/questions/23226/… – Shepherdjo Jun 28 '12 at 9:38

Another easy solution might be the use of the "mmqgis" plugin. You can find it directly via the plugin downloader.

After loading you will find in the menu Plugins->mmqgis->Transfer a clickable dialog to export shape attribute tables to csv data. You can even export whole geometries.

share|improve this answer

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.