@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
21 lines (20 loc) • 1.08 kB
TypeScript
import { Feature } from 'ol';
import { Geometry } from 'ol/geom';
import { OgcApiQueryablesResponse } from '../../models/serverogcapi';
import OgcApiClient from './ogcapiclient';
export declare const DEMO_INSTANCES: Record<string, any>;
export type OgcApiFeaturesClientOptions = {
url: string;
};
export default class OgcApiFeaturesClient extends OgcApiClient {
constructor(options: OgcApiFeaturesClientOptions);
getCollections(): Promise<void>;
getCollection(_collectionId: string): Promise<void>;
getSchema(collectionId: string): Promise<any>;
getQueryables(collectionId: string): Promise<OgcApiQueryablesResponse>;
getItems(collectionId: string, extent?: number[], crs?: string): Promise<Feature<Geometry>[]>;
getItem(collectionId: string, itemId: string, crs?: string): Promise<Feature<Geometry>>;
createItem(collectionId: string, item: Feature<Geometry>): Promise<boolean>;
updateItem(_collectionId: string, _itemId: string, _item: Feature<Geometry>): Promise<void>;
deleteItem(_collectionId: string, _itemId: string): Promise<void>;
}