8

I have gridded depth points in CSV format that I'm trying to add other map data to, in additional columns. I've tried joining fields, hoping that I could link the shapefile data to the CSV, but when I try to display the CSV by graduated symbols based on the new fields, it goes blank. I used @Nathan's tips from here, but imported the CSV as CSV since I want to add map info to that, rather than adding CSV info to a map.

See this picture below for the sea bottom temperature & salinity voronois by month, underneath the CSV points (a sample subset), with the joins already made. I added columns on the CSV for each of the fields i'm intending to append.

DESCRIPTION

I also tried spatial joins as per this however it says the layers aren't the same CRS (I checked, they are), then gets to 15% and hangs.

I also also tried spatial join through MMQGIS but it hit a python error. I can try this again and look to debug the problem if this is the right way to go.

In short: appending polygon data as fields on a points-grid CSV: what's the best way in QGIS 2.0?

2 Answers 2

12

The best tool for this job in my experience is Add polygon attributes to points in the Processing toolbox. If it does not work directly with the CSV, just save the points to a Shapefile before you run the spatial join.

0
5

Processing > Toolbox > SAGA > Vector point tools > Add polygon attributes to points:

enter image description here

Then you select the attribute from polygon data to add:

enter image description here

You can repeat the process with the result to add more than one attribute.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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