Skip to content

derhuerst/wfs-gml-to-geojson

Repository files navigation

wfs-gml-to-geojson

Convert a GML from a Web Feature Service (WFS) to GeoJSON. Accepts the format of xml-reader (with the preserveMarkup flag) as input.

npm version build status ISC-licensed chat on gitter

Installing

npm install wfs-gml-to-geojson

Usage

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].

Contributing

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.