Function: getField()
getField(
fdm
,principal_id
,b_id
):Promise
<getFieldType
>
Defined in: fdm-core/src/field.ts:130
Alpha
Retrieves detailed information for a specific field.
This function verifies that the principal identified by principal_id
has permission to read the field,
then fetches and returns the field's properties including its geometry, area, acquisition, and related timestamps.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The identifier of the principal making the request.
b_id
any
The unique identifier of the field to retrieve.
Returns
Promise
<getFieldType
>
A promise that resolves with the field details.