Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

Is there a way to merge all the layers to one?

share|improve this question

3 Answers

up vote 11 down vote accepted

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...

share|improve this answer
Thanks this was very helpful.. I wonder why this is not core in QGIS?? best – nangka Jul 31 '12 at 6:48
you're welcome. i think what u think... – Aragon Jul 31 '12 at 8:18
2  
There is such an option, under the vector menu, data management tool – Paulo Aug 1 '12 at 7:56

MMgis was found under the 'Plugins' Menu in QGIS 1.8.0 Lisboa. Just in case people do not find it under the 'Vector' menu. I am not sure it this can be changed by the user.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.