1

I have a shp file of roughly 100 Polygon. I also have a corresponding list (including X,Y data) of about 3000 points, in a csv file. Overlayed within QGis the 100 polygons contain about 90% of the points. I would like to export the data of the points and polygons which are intersected into a flat file.

Data Description:

points 
 - X
 - Y
 - Point Name

Geometry
 - Geometry Data
 - Geometry Name

Output (for all point which are contained within a polygon)
 - Point Name
 - Geometry Name
5
  • So you want the points that intersect the geometry layer and you want those points to have the geometry schema info (data/name)?
    – artwork21
    Nov 21 '13 at 12:37
  • that is correct
    – RoughPlace
    Nov 21 '13 at 12:44
  • Does your list of points is in the form of a shp file? i.e. (/or) does it include spatial information? And is the geometry layer is polygonal?
    – dof1985
    Nov 21 '13 at 12:49
  • the points file is a csv file in the form above and the Geometry is indeed polygonal
    – RoughPlace
    Nov 21 '13 at 12:58
  • 1
    Answer is on the way - basically you should import the X,Y point layer to form a shp file - pay attention to use same coordinate system as the polygons layer. Than you can use join attributes by location (spatial join) to form a relationship between the to tables and geometries. Finally export the joint table
    – dof1985
    Nov 21 '13 at 13:00
2

Here are the steps that you should perform:

  • Import your X,Y point data using same coordinate system as defined for your polygons layer.
  • Use "join attribute by location" in the vector>data management menu to connect the points layer to the polygons layer. See tutorial - you should do the same Spatial Join
  • Export the joint table and you've finished. I had attached a printscreen of the result below. The id column is for the points layer and id2 belongs to the polygon. The join will merge all fields and attributes in your tables, so names, points X,Y, and other data will be displayed respectively.

Good Luck

enter image description here

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.