1

I'd like to add the neighborhoods listed in a shp file to the data points in a csv

Link to shp

Link to csv

Here are the data points overlaid on the shapefile map of the neighborhoods.

enter image description here

I'd like to get these neighborhood names

enter image description here

Into this dataset, so that each data point has the correct neighborhood name

enter image description here

Adding what I've tried.

enter image description here

Clicked 'no'

enter image description here

Opened new shapefile, seems empty.

enter image description here

3

You can use the tool "join attributes by location".have a look at my answer to this question: Combine Shapefile with address information

Just load the polygon layer into qgis and transform it to epsg 4326 (from 102643).

enter image description here

Then save the imported csv as shapefile and define the crs of the layer as EPSG4326.

enter image description here enter image description here deactivate otf-reprojection and do the join. See the output:

enter image description here

Then you can save the layers as csv again:

enter image description here

  • In "join attributes by location" its output is a shapefile. I'm still confused on how I add the neighborhoods from the shapefile to the csv – David Feldman Feb 9 '15 at 6:49
  • Just save the shapefile as csv when you finished your spatial join(right click, save as...) – Thomas B Feb 9 '15 at 6:51
  • 1
    Your crs have to match.On your first screenshot there seems to be a userdefined crs set for one of the layers.Apart from that you should save your imported csv as shapefile and use this file for the join – Thomas B Feb 9 '15 at 7:08
  • 1
    The reason they end up in different locations is that they are in different coordinate systems. Try right clicking one of the layers, choosing Save As, and then save it in the same coordinate system as the other layer. – hexamon Feb 9 '15 at 10:29
  • 1
    Just load the polygon layer into qgis and transform it to epsg 4326 (from 102643) .then define the csv layer as EPSG4326.deactivate otf-reprojection and do the join.Just tested it and works smoothly ;-) – Thomas B Feb 9 '15 at 10:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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