import { Feature } from 'ol'; import { WFS as OlWFS } from 'ol/format.js'; import { ReadOptions } from 'ol/format/Feature.js'; import { Options } from 'ol/format/WFS.js'; import Geometry from 'ol/geom/Geometry.js'; /** * WFS parser * * Extends ol.format.WFS to be able to read nested `FeatureCollections` in GML32, * which are present in WFS 2.0.0 responses from MapServer, GeoServer and QGIS Server. * This does not change behaviour for WFS 1.1.0 and 1.0.0. * * Can be removed later when the problem linked below is resolved in ol. * * Code copied and adapted from * https://github.com/openlayers/openlayers/issues/12389 */ export default class WfsParser extends OlWFS { constructor(opt_options?: Options); readFeatures(source: Document | Element | object | string, opt_options?: ReadOptions): Feature[]; readFeaturesGML32(source: Document | Element | object | string, opt_options?: ReadOptions): Feature[]; private readNestedFeatureCollectionsGML32; private hasNestedFeatureCollectionsGML32; private isNestedFeatureCollection; }