I have a situation where I need to merge a large number of spatial files into a single output with a free tool like QGIS, rather than FME or Alteryx.
Along the lines of this post:
Merging multiple vector layers to one layer using QGIS?
However, I have some point features, some line features, and some polygon features. This rules out outputs like shapefiles, but anything else is fine like GML, TAB, or a database.
Is there anyway to do this in QGIS?
Every process or model I try makes a shapefile at some point which means this can't work.
Best Answer
You can merge layers with different geometry types together with ogr2ogr.
Here is an example about merging an point shapefile and polygon shapefile into GeoPackage as a new layer "merged" that has a generic geometry type.
However, you will have some problems with QGIS with using that layer because QGIS can't handle points, lines, and polygons on a same layer. QGIS requires that layer is split by the geometry type
You can open the merged layer as a single layer with OpenJUMP.