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.

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
    
working on similar thing at my end. I am trying to make python tool as per the requirement. I think python script will be best option for you.. –  Sunil Aug 2 '13 at 4:58
add comment

4 Answers

Or: After you highlighted them->right click on the Layer->Save Selction as->In the Drop-down menu 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
add comment

You can select the features, go to the attribute table then highlight the selected features that you want from that selection and then right click in the attribute table and hit "re-select highlighted" giving you your new selection which you can now export and save.

Hope that is clear/helps

share|improve this answer
2  
i guess that is in ArcGIS... –  vinayan Aug 2 '13 at 4:46
1  
Welcome to GIS SE! I hope you will be OK about us pointing out that this appears to be an ArcGIS for Desktop answer to a QGIS question which is something you may see voted down. I am hoping that no one will downvote in this instance but to avoid any chance of that you should be able to just delete your answer. –  PolyGeo Aug 2 '13 at 5:23
add comment

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
add comment

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 '13 at 10:06
add comment

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.