npm.io
0.1.0 • Published 11 years ago

pelias-openstreetmap-polygons

Licence
MIT
Version
0.1.0
Deps
8
Vulns
0
Weekly
0
Stars
7

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

Keywords