I have a shapefile (which can be downloaded from this dropbox link) that I'd like to rasterize so I can merge it with some non-geographic data (I have the code to do this already). Unfortunately, the shapefile does not have a unique ID assigned to each delimited area, as shown below. The region_id
attribute isn't actually unique. (Look at the areas with 10, 14, and 15 as region IDs).
How can I assign a unique attribute to each of these delimited, closed regions so that I can rasterize the shapefile into the proper format? (In my case, an XYZ format with latitude, longitude, and a specific value).
The attribute table looks like this:
split multiparts to singleparts
to split apart separate regions that have the same region_id. – csk Nov 5 '18 at 16:12