1.0.2 • Published 12 days ago

ol-describe-feature-type v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

ol-describe-feature-type

Module to work alongside OpenLayers for reading WFS Describe Feature Type XML data and convert it to JSON.

Online example

See converter to text and parse data

Usage

import DescribeFeatureType from 'ol-describe-feature-type';

const parser = new DescribeFeatureType();

const parsedData = parser.read(describeFeatureTypeXML);

// use ´readFormatted´ to get an object emulating a native geoserver/mapserver json response
const parsedDataFormated = parser.readFormatted(describeFeatureTypeXML);

Changelog

See CHANGELOG for details of changes in each release.

Install

Parcel, Webpack, etc.

NPM package: ol-describe-feature-type.

Install the package via npm

npm install ol-describe-feature-type

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.

1.0.2

12 days ago

1.0.1

13 days ago

1.0.0

18 days ago