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 and the exported
levelproperty. Default0.source_levelseparately records the stored ROI level, andcoordinate_schemamarks the file as recording the level of its coordinates, soat_read_geojson()restores ROIs at that level.- 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.
See also
at_read_geojson(), at_write_qupath()
Other io:
at_inspect_saved(),
at_inspect_source(),
at_load_project(),
at_load_session(),
at_read_geojson(),
at_read_qupath(),
at_read_rois_csv(),
at_relink_source(),
at_roi_from_geojson(),
at_save_project(),
at_save_session(),
at_write_qupath(),
at_write_rois_csv()
Examples
p <- tempfile(fileext = ".geojson")
at_write_geojson(at_example_project(), p)