QGIS dissolve by attribute and retain primary polygon attributes

المشرف العام

Administrator
طاقم الإدارة
I have a parcel shapefile. Many of the parcels have been combined over time, but the shapefile still represents the original parcel boundaries. The attribute table has a field for the original parcel number as well as, for those that have been joined, the current 'parent parcel'. I created a new attribute that replaces the historic parcel id with the current parent. When I dissolve by this I get a shapefile of that represents the current geographic conditions, but my attribute data is not accurate. In some cases QGIS dissolves and retains the parcel record that was merged into (and not currently recognized) with no associated attribute data.

I could just join up the data again after dissolving; but there must be a way to tell the dissolve function to retain a specific 'primary' polygon. I have a dummy attribute marking the 'primary' as 1, but I don't know how dissolve chooses which record to retain; sorting doesn't seem to make a difference. Is there a way to change how dissolve decides which record to retain, and feed it my dummy? Is there an entirely different approach I should try? Or should I just shut up and rejoin all of the data?

I'm hesitant to rejoin, because there are half a million records, and most operations are pretty taxing on my poor computer.



أكثر...
 
أعلى