I need to merge multiple shape files and want the merged file to have the maximum value for each feature of a specific attribute (called DEPTH2D in the example below)
What I need is exactly what it is asked here below but instead of a raster I have a shape file:
Combining multiple overlapping rasters - retain maximum value?
I also went through this other topic but what it does is giving the maximum value for each attribute, while I need to have the maximum for each row (so for each attribute):
Getting maximum values of attribute of multiple Shapefiles merged into new shapefile in QGIS?
Just to give you some context:
I generated on Infoworks ICM multiple flood map shape files, each for a different storm durations. I now need to merge them on a unique shape file that contains the maximum depth for each attribute
Any idea?
Say for example I want to merge shape file 1 and 2 containing polygons, in the picture below. The element 98312 is contained in both shape file and has a value of the field 'DEPTH2D' =0.055 in the shape file 1 and 0.027 in the shape file 2
I want to merge together shape files 1 and 2 and I want the merged shape file to have the element 98312 with a have a value of 0.055 (the maximum between 0.055 and 0.027)

