I have a .shp file of a country in which I have NAME_1 as state/province name. NAME_2 as district name and NAME_3 as towns of the district. I want to merge the polygons based on NAME_2 for the whole country except 30 entries out of them. I tried dissolve tool of QGIS but it didn't helped. There is one more problem here is that NAME_2 can be repeated for more than one NAME_1. So I have to take care of this also. I am doing it manually one by one using merge selected features in QGIS. Could somebody show me a way for doing this as fast as possible.
1 Answer
I would:
1) Create a new field called Name_12 which would be a concat("NAME_1",',',"NAME_2") in order to solve the problem of the same district name for different states and use this as the dissolving field.
and
2) Select the 30 polygons that i don't want to dissolve and then do a reverse selection to select the rest and run the dissolve.
-
Your idea is excellent, I struggled a bit because my shapefile had null values in wkt_geom column. After deleting all the null values I was able to dissolve the features but it stuck on 100%. When I closed it, I imported the dissolved shapefile but it contains nothing. My shapefile has multipolygon and polygon as well. Do you think this could be a problem?– AMahajanCommented Jul 29, 2016 at 12:04
-
I don't think that this is a problem. Something else might be wrong. Just in case why don't u try to split the multiparts to single parts since you're going to dissolve them anyway just to cross-check it?– vagvafCommented Jul 29, 2016 at 14:54