1

I have a shapefile and spatial coordinate file. I wish to extract information for each coordinate from shapefile. Is it possible in QGIS?

I have 19 coordinate points and I'm trying to extract soil type data for each coordinate. Shapefile is polygon and coordinate file is .txt. I'm trying to extract information precisely for each coordinate.

4
  • 1
    What are you hoping to achieve? Is your shapefile points, lines or polygons? Are you trying to get the shapefile information for each coordinate precisely in the coordinate file or the nearest? or is it that you want to find the coordinates in the file that match something in the shapefile? What format is the coordinate file? Commented Nov 27, 2017 at 2:02
  • Welcome to GIS SE! As a new user be sure to take the Tour to learn about our focussed Q&A format.
    – PolyGeo
    Commented Nov 27, 2017 at 2:08
  • 2
    Sample data and desired output? Commented Nov 27, 2017 at 2:47
  • 2
    If the text file is comma separated values (CSV), have a read of gdal.org/drv_csv.html to understand how OGR can use the coordinates without too much mucking around, after you've loaded the points as shape in QGIS then have a read of gis.stackexchange.com/questions/71250/… which will explain how to intersect the points and polygons to get the attributes from the polygons for each point.. have a go at that and if you're successful edit your answer to include your steps and some screenshots for the benefit of future readers. Commented Nov 27, 2017 at 2:51

1 Answer 1

3

As commented by @Michael Stimson, if the point data in text format or CSV format you need to import them into QGIS. To do that, here is the process:

  • Import them using Add Delimited Text Layer enter image description here
  • Choose the correct delimiter, X Field and Y Field
  • Save the file as shapefile and choose the correct CRS that matches the polygon shapefile

enter image description here

  • Now, there are different methods to extract polygon attribute into the point shapefile:

a. Using Intersect tool from Vector -> Geoprocessing tools -> intersect

b. Using Add polygon attributes to points tools from SAGA -> Vector point tools -> Add polygon attributes to points

c. Using Join attributes by location from Vector -> Data Management tools -> Join attributes by location.

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