Socket
Socket
Sign inDemoInstall

geojson2osm

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    geojson2osm

Convert geojson to osm


Version published
Maintainers
1
Install size
15.7 kB
Created

Readme

Source

Build Status

geojson2osm

Convert gejson files to osm file.

Usage

npm install geojson2osm

Example:

geojson2osm file.geojson > file.osm

or

var geojson2osm = require('geojson2osm');
var geo = {
    "type": "FeatureCollection",
    "features": [{
          "type": "Feature",
          "properties": {
            "building:colour": #9F8169
			"building:levels":21
			"building":yes
			"height":57
			},
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              -434.2249470949173,
              -13.15996269397843
            ],
            [
              -434.2249470949173,
              -13.159751140560356
            ],
            [
              -434.2242631316185,
              -13.159751140560356
            ],
            [
              -434.2242631316185,
              -13.15996269397843
            ],
            [
              -434.2249470949173,
              -13.15996269397843
            ]
          ]
        ]
      }
    }
  ]
}
geojson2osm.geojson2osm(geo);

TypeScript

TypeScript implementation was added to the DefinitelyTyped repository.

$ npm install --save @types/geojson2osm

Testing

npm test

Keywords

FAQs

Last updated on 11 Nov 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc