4

I have two polygon shapefiles (parcel and zoning). Parcel shapefile is overlapped by zoning shapefile. Parcel layer does not contain information about zone and I want to add that information to each parcel from zoning shapefile.

My idea is to create centroids from parcel shapefiles and after that to join zoning shapefile by location. On that way, I will add zoning attributes in my centroid point file. When I finish that I will join by location that point file and my parcel file. Unnecessary fields could be deleted after that.

I need to know is there any faster way to finish this job in QGIS?

This is a screenshot of a part of my parcel shapefile: enter image description here

This is a screenshot of a part of my zoning shapefile: enter image description here

Just to note that this is a very large data, about 800000 parcels.

5
  • Why don't you directly join the two polygon shapefiles? It should be enough if your layers have the same crs. In addition, the creation of centroids could lead to inaccurate results in some situations.
    – mgri
    Mar 20, 2017 at 10:01
  • You mean to join two shapefiles by location? Could you describe how to do that? Thank you.
    – user87349
    Mar 20, 2017 at 10:03
  • Do you have some sort number or ID number that you can use to join tables?
    – Losbaltica
    Mar 20, 2017 at 10:18
  • I don`t have some unique value in both shapefiles.
    – user87349
    Mar 20, 2017 at 10:30
  • Also if I go to Vector- Data Managment Tools- Join Attributes by Location and after that use Take attributes of first located feature I have some wrong results. For example, road have joined attributes of nearest zones, even they don`t need any zone information.
    – user87349
    Mar 20, 2017 at 10:35

1 Answer 1

5

If your parcels and zoning shapefiles have the same crs, you may use the Join attributes by location algorithm from Processing Toolbox.

You may set these parameters:

enter image description here

The output layer will be identical to the parcels layer but, in addition, it will have the same fields of the zoning layer and, when two features from both layers intersect, it will store the corresponding value from the zoning layer. From a general point of view, this operation should be enough for accomplishing this task.

0

Your Answer

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

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