Convert a GML from a Web Feature Service (WFS) to GeoJSON. Accepts the format of xml-reader
(with the preserveMarkup
flag) as input.
npm install wfs-gml-to-geojson
const h = require('hyper-xml')
const parse = require('wfs-gml-to-geojson')
const el = // todo
const geometry = parse(el)
console.log(geometry)
// todo
You may optionally pass in a function to transform coordinates. The default transform is (x, y) => [x, y]
.
If you have a question or have difficulties using wfs-gml-to-geojson
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.