om_write: Save map layers to a file

View source: R/om_write.R

om_writeR Documentation

Save map layers to a file

Description

Write a list a map of layers to a geopackage file.

Usage

om_write(x, filename)

Arguments

x

a list of map layers produce with om_get

filename

a geopackage file

Value

The layers are saved to a geopackage file. Nothing is returned.

Examples

res = om_get(c(-61.070, 14.605), r = 600)
om_map(res, title = "Fort-de-France town centre")
(om_write(res, file.path(tempdir(), "f2f.gpkg")))

maposm documentation built on Sept. 17, 2026, 5:08 p.m.