Skip to contents

Write a project's ROIs to GeoJSON

Usage

at_write_geojson(
  project,
  path,
  layer = NULL,
  level = 0L,
  flip_y = FALSE,
  overwrite = FALSE,
  call = rlang::caller_env()
)

Arguments

project

An annot_project.

path

Output file path.

layer

Optional layer filter.

level

Integer pyramid level for the coordinates. Default 0.

flip_y

Logical; invert the y-axis (for GIS-oriented consumers). Default FALSE (image orientation preserved). The consequence is documented in the interop vignette.

overwrite

Logical; overwrite an existing file. Default FALSE.

call

The calling environment, for error reporting.

Value

The output path, invisibly.

Examples

p <- withr::local_tempfile(fileext = ".geojson")
at_write_geojson(at_example_project(), p)