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.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
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:
library(sf) geomcoll <- c(st_linestring(matrix(1:6,3)), st_point(1:2)) plot(geomcoll)
geomcoll <- st_sfc(geomcoll,crs='+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ') st_write(geomcoll,'test.kml')