Skip to main content

addSoilImageAnnotation

@nmi-agro/fdm-source


@nmi-agro/fdm-source / fdm-core/src / addSoilImageAnnotation

Function: addSoilImageAnnotation()

addSoilImageAnnotation(fdm, principal_id, a_id_image, input): Promise<any>

Defined in: fdm-core/src/soil-image.ts:231

Adds an annotation to a soil image.

Parameters

fdm

PgDatabase

The FDM database instance.

principal_id

any

The ID of the principal performing the operation.

a_id_image

any

The ID of the image to annotate.

input

AddSoilImageAnnotationInput

Annotation data (type, coordinate JSON, text, indicator).

Returns

Promise<any>

The ID of the newly created annotation.