New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tags2nodes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tags2nodes

Relation tags to nodes

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

tags2nodes

An OSM tool for attaching relation tags to the member nodes.

You have to specify the osm input file, the relation you want to filter, the postgres user and db data and the program creates a table to store the ouput nodes with 5 columns: id, tags, lat, lon and geometry.

In the column tags (json stringified by default) you can find, besides the node tags, something like this:

relations : {relationid1:{name:'relation1 name', id:'relation1 id',...},
            relationid2:{name:'relation2 name', id:'relation2 id',...}}

... all the relations that have the node as member, and their tags!

Install

sudo npm install -g tags2nodes

or git clone this repository.

Usage

tags2nodes [arguments]

Arguments

 -f      input osm.pbf file.
 -u      postgres user.
 -p      postgres password.
 -h      postgres host.
 -d      postgres db name.
 -c      osm relation condition json (without quotes!). I.e.: {route:subway}.
 -r      [optional] role of members of relation to be filtered. I.e.: stop. 
         Default: all roles.
 -e      [optional] condition that allows to fetch also nodes outside relations. 
         I.e: {station:subway}.
 -t      [optional] postgres output table name. Default: tags2nodes.
 -j      [optional] output projection. Default: WGS84 (4326).
 --json  [optional] json format for tags field. Only valid for Postgres >= 9.3. 
         Default: text
 --jsonb [optional] jsonb format for tags field (faster!). Only valid for 
         Postgres >= 9.4. Default: text.
 --help  this help.

License

MIT.

FAQs

Package last updated on 06 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts