@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
23 lines (22 loc) • 825 B
TypeScript
import { XmlTypes } from './xmlTypes.js';
export interface LayerAttribute<WfsXmlTypes = XmlTypes> {
name: string;
type: WfsXmlTypes;
valueList?: string[];
}
declare class ServerWfs<WfsXmlTypes = XmlTypes> {
name: string;
url: string;
layers: Record<string, LayerAttribute<WfsXmlTypes>[]>;
featureTypeToGeometryColumnName: {
[key: string]: LayerAttribute<WfsXmlTypes>;
};
initialized: boolean;
constructor(name: string, url: string);
addLayer(layer: string): void;
removeLayer(layer: string): void;
addLayerAttribute(layer: string, name: string, type: string): void;
addLayerGeometryAttribute(layer: string, name: string, type: string): void;
getGeometryColumnNameToFeatureTypes(featureTypes: string[]): Record<string, string[]>;
}
export default ServerWfs;