pelias-openstreetmap-polygons
v0.1.0
Published
Extract administrative polygons from openstreetmap data
Downloads
3
Maintainers
Readme
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.
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