In QGIS can I create a model in the Graphical Modeler that does the equivalent of the following manual steps if I were just using menus/toolbars? If I can't via the Modeler is there another way in QGIS or even a different tool like GDAL tools to automate this?
- [Assume I've opened a shapefile/layer]
- Toggle Editing on
- Edit->Select->Select All Features
- Edit->Edit Geometry->Merge Selected Features
- Take attributes from first feature
I have a large number of shapefiles. Each one contains up to thousands of features, each a vertical slice of the whole as shown in the first image below. I'd like to automate the above steps so I can convert each shapefile such that it contains a single feature combining all the original features as shown in the second image. All the features within a shapefile have the same attributes. I do not want to combine shapefiles, simply combine the features within a shapefile.

