Is there a way, using open source software, to export multiple shapefiles of mixed geometry types, and different attributes, into one KMZ/KML file?

Something similar to from ArcMap "Map to KML", but styling information is not necessary.

| improve this question | | | | |

Use R with sf package. It has an object kind called GEOMETRYCOLLECTION, you can merge different kinds of geometries and export them to google earth.

With a basic reproducible example:


geomcoll <- c(st_linestring(matrix(1:6,3)), st_point(1:2))


enter image description here

geomcoll <- st_sfc(geomcoll,crs='+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ')


enter image description here

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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