0.0.7 • Published 4 years ago

geojson2osm v0.0.7

Weekly downloads
12
License
ISC
Repository
-
Last release
4 years ago

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
0.0.7

4 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago