Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a county level shape file for South Carolina. I generated random points using Vector->Research Tools-> Random Points. The Attribute tables for the random points layer has only the ID included. I would like to export the latitude, longitude and corresponding county for all the generated points (there is a COUNTYFP10 variable in the attributes table of the original state layer). I managed to export the latitude and longitude using "Save as" , choosing "Comma Separated Value". Then, in the "Layers" part of the "OGR creation options" I typed "GEOMETRY=AS_XY". I am not sure how to add the corresponding county to the saved CSV file. Any help would be greatly appreciated. Thank you, Georgiana

share|improve this question

Could you take the generated points and go to Vector -> Data management Tools -> Join Attributes by Location? That would add the county name to each point. Then export the points out to a CSV. I tested this with QGIS 1.8.

share|improve this answer

Your Answer


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.