@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
38 lines (37 loc) • 1.63 kB
TypeScript
import { ObjectiveAnswer, Objective, Metric } from "../types/index.js";
export type ZoneId = number;
export type ZoneName = string;
export type ZoneColor = string;
export type Zone = [string[], string, string, number];
export type MpaClassification = {
scores: any[];
index: number;
indexLabel: string;
};
export declare const FULLY_PROTECTED_LEVEL = "Fully Protected Area";
export declare const HIGHLY_PROTECTED_LEVEL = "Highly Protected Area";
export declare const MODERATELY_PROTECTED_LEVEL = "Moderately Protected Area";
export declare const POORLY_PROTECTED_LEVEL = "Poorly Protected Area";
export declare const UNPROTECTED_LEVEL = "Unprotected Area";
export declare const rbcsMpaProtectionLevels: readonly ["Fully Protected Area", "Highly Protected Area", "Moderately Protected Area", "Poorly Protected Area", "Unprotected Area"];
export type RbcsMpaProtectionLevel = (typeof rbcsMpaProtectionLevels)[number];
/**
* Mapping of RBCS MPA Classification ID to whether it counts toward or meets an objective
*/
export type RbcsMpaObjectiveAnswerMap = Record<RbcsMpaProtectionLevel, ObjectiveAnswer>;
export interface RbcsObjective extends Objective {
/** Map of RBCS protection levels to whether they count towards objective */
countsToward: RbcsMpaObjectiveAnswerMap;
}
/**
* Extended metric for mpa-reg-based-classification results, either zone or mpa classification
*/
export interface RegBasedClassificationMetric extends Omit<Metric, "extra"> {
sketchId: string;
extra?: {
gearTypes?: string[];
aquaculture?: string;
boating?: string;
label?: string;
};
}