UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

23 lines (22 loc) 899 B
import { OapifSchemaResponse, OapifPropertySchema } from '../../models/serverogcapifeatures.js'; /** * Represents the schema for an OGC API collection feature. */ export default class OgcApiFeaturesSchema { private readonly schema; formAttributes: [string, OapifPropertySchema][]; constructor(schema: OapifSchemaResponse); /** * Generates a template object based on the schema's properties, excluding the geometry. */ get template(): Record<string, number | string | boolean | null>; get idAttribute(): string; get geometryAttribute(): string | undefined; getProperties(attributeName: string): OapifPropertySchema; isTextProperty(attributeName: string): boolean; isNumericProperty(attributeName: string): boolean; isTemporalProperty(attributeName: string): boolean; private isGeometry; private isPrimaryKey; private setDefaults; }