UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

22 lines 930 B
import { z } from "zod"; //// SCHEMA //// /** * Represents a single class of data. Ties it to an underlying datasource, holds attributes used for displaying in user interfaces */ export const dataClassSchema = z.object({ /** Unique identifier for class in project */ classId: z.string(), /** Optional datasource class key used to source classIds */ classKey: z.string().optional(), /** Datasource for single data class */ datasourceId: z.string().optional(), /** Name of class suitable for user display */ display: z.string(), /** Optional unique number used by some datasets (e.g. raster) to represent data class instead of string */ numericClassId: z.number().optional(), /** Optional ID of map layer associated with this class */ layerId: z.string().optional(), /** class level objective */ objectiveId: z.string().optional(), }); //# sourceMappingURL=dataclass.js.map