Package detail

ol-wfs-capabilities

GastonZalba2.8kMIT2.0.0

Format for reading WFS capabilities data

ol, openlayers, capabilities, getCapabilities

readme

ol-wfs-capabilities

npm version npm license

Module to work alongside OpenLayers for reading WFS Capabilities data (versions 1.0.0, 1.1.0 and 2.0.0) and convert it to JSON, complementing the native classes ol/format/WMSCapabilities and ol/format/WMTSCapabilities.

OpenLayers (at least up to 8.1.0 version) does not have a native way to do this (see related issue), hence the creation of this module that does not depend on any other external dependency other than what comes with OpenLayers.

Online example

See converter to text and parse data

Usage

import WFSCapabilities from 'ol-wfs-capabilities';

const parser = new WFSCapabilities();

const parsedCapabilities = parser.read(myWfsCapabilitiesSource);

Changelog

See CHANGELOG for details of changes in each release.

Install

Parcel, Webpack, etc.

NPM package: ol-wfs-capabilities.

Install the package via npm

npm install ol-wfs-capabilities

TypeScript type definition

TypeScript types are shipped with the project in the dist directory and should be automatically used in a TypeScript project. Interfaces are provided for the Options.

Development

# install dependencies
npm install

# run test
npm test
# run test without pretest
npx jest

# run online example locally on http://localhost:3009/
npm run watch

License

MIT (c) Gastón Zalba.

changelog

v1.0.0

  • First commit

v1.0.1

  • Addeed NPM badges and improved README

v1.0.2

  • Added missing tag MetadataURL inside FeatureTypeList group
  • Added pretest and generate-types scripts
  • Added types
  • Fixed some invalids comments types
  • Added CHANGELOG file

v1.0.3

  • Added online example
  • Added watch script

v2.0.0

  • Updated dependencies
  • Added support for older versions 1.0.0 and 1.1.0
  • Breaking change: Changed "Id_Capabilities" (version 2.0.0) data type (object to array)