pelias-openstreetmap-polygons

0.1.0 • Public • Published

openstreetmap-polygons

This module extracts administrative boundary polygons from openstreetmap data files. It's currently using node-osmium to do most of the work, and simply filtering the generated polygons using tags.

NPM

Note: you will need node and npm installed first.

The easiest way to install node.js is with nave.sh by executing [sudo] ./nave.sh usemain stable

Installation

$ npm install pelias-openstreetmap-polygons

Usage

There is config.json in the project's etc directory. You can define the following parameters.

    {
        "inputFile": "path/to/input/file",
        "outputDir": "path/to/output/directory"
    }

Once config is to your liking, run as follows.

$ npm start

Notes

Osmium parser has been separated into a child process because it doesn't respect node's event loop.

Running Unit Tests

$ npm test

Continuous Integration

Build Status

Package Sidebar

Install

npm i pelias-openstreetmap-polygons

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dianashk