9

I want to merge two shape files in which one is of point geometry type and other is polygon type in order to get a single layer containing both points and polygon in a single map.

3 Answers 3

12

Shapefile format doesn't allow multiple geometry types, so you should use another format, like GeoJSON. See also OGR merge shapefiles of different geom type into a single GeoJSON feature collection, How to Merge/Join GeoJSON and JSON? and https://gist.github.com/migurski/3759608

5

But you can group two layers together if you are trying to save mouse clicks on switching them on and off.

4

You can buffer the point and save it. Then in QGIS go to Vector -> Data Management Tools -> Merge shapefiles to one. If you want geojson, then you can now convert the merged shapefiles to geojson.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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