Merging multiple vector layers to one layer using QGIS?

  • I've imported several shapefiles which where exported from a Mapinfo .tab. Several tab files are imported resulting in 20+ layers. Afterwards I want to export it to geoJSON; but I'm reluctant to select each layer and export it manually.

    Is there a way to merge all the layers into one using QGIS?

    All these functions can be accessed via the Sextante plugin, also in Lisboa

    yes, the tools works perfectly. Just if the input shapefiles are in UTF8, the output shapefile lose atributes.... is there any way to say QGIS to create SHP in UTF8 ? something like in ArcGIS, where you can in registry set the value defaul codepage to UTF8?

  • Aragon

    Aragon Correct answer

    8 years ago

    you can use MMqgis tools for merging...

    mmqgis

    The merge layers tool merges features from multiple layers into a single shapefile and adds the merged shapefile to the project. One or more layers are selected from the "Select Source Layers" dialog list box and an output shapefile name is specified in the "Output Shapefile" dialog field.

    Merged layers must all be the same geometry type (point, polygon, etc.). If the source layers have different attribute fields (distinguished by name and type), the merged file will contain a set of all different fields from the source layers with NULL values inserted when a source layer does not have a specific output field.

    i hope it helps you...

    There is such an option, under the vector menu, data management tool

  • You can use the 'merge shapefiles to one' function under the menu vector|Data management tool. You can merge all files in the input directory or select specific files in the input directory.

    enter image description here

    The same applies as for MMqgis tool: merged layers must all be of the same geometry type. Also, if the source layers have different attributes fields, the merged file will contain all fields, but with NULL values inserted when a source layer does not have a specific field.

  • You can also use the v.patch module under GRASS commands. It's available in the processing toolbox.

    You can search for it when the dropdown at the bottom of the Processing Toolbox window is switched from "Simplified interface" to "Advanced interface".

    enter image description here

License under CC-BY-SA with attribution


Content dated before 6/26/2020 9:53 AM