@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
64 lines (63 loc) • 1.79 kB
TypeScript
import ServerOgcApi, { OgcApiLinksResponse } from './serverogcapi';
import ServerOgc from './serverogc';
export declare const oapifNumericTypes: string[];
export declare const oapifTextTypes: string[];
export declare const oapifTemporalTypes: string[];
export declare const oapifPropertyTypesList: readonly string[];
export type oapifPropertyTypes = (typeof oapifPropertyTypesList)[number];
export default class ServerOgcApiFeatures extends ServerOgcApi {
constructor(url: string);
}
export type OapifSchemaResponse = {
$id?: string;
$schema?: string;
title?: string;
description?: string;
type?: string;
properties: Record<string, OapifPropertySchema>;
};
export type OapifPropertySchema = {
'title'?: string;
'description'?: string;
'type'?: oapifPropertyTypes;
'format'?: string;
'x-ogc-role'?: string;
'x-ogc-propertySeq'?: number;
'readOnly'?: boolean;
'required'?: boolean;
'maxLength'?: number;
'minimum'?: number;
'maximum'?: number;
'enum'?: Array<string | number>;
'oneOf'?: {
const: string;
value: string;
}[];
'x-orc-codelistUri'?: string;
};
export type OapifCollection = {
id: string;
title: string;
description?: string;
links: OgcApiLinksResponse[];
itemType: string;
extent?: {
spatial: {
bbox: number[][];
crs: string;
};
};
crs?: string[];
storageCrs?: string;
};
export type OapifLayer = {
url: string;
collectionId: string;
crs: string;
credentials?: string;
geometryType: 'Point' | 'LineString' | 'Polygon' | 'MultiPoint' | 'MultiLineString' | 'MultiPolygon';
attributeName: string;
attributeType: string;
serverType: string;
server: ServerOgc;
};