clipsy-geojson

0.0.3 • Public • Published

clipsy-geojson

conversion module for clipsy and geojson

install

npm install clipsy-geojson

test

npm test

use

var cg = require('clipsy-geojson')
 
var geojsonData = {
  "type": "Feature",
  "properties": {},
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          -85.53508758544922,
          33.28777693677941
        ],
        [
          -85.53508758544922,
          33.32751625923708
        ],
        [
          -85.43895721435547,
          33.32751625923708
        ],
        [
          -85.43895721435547,
          33.28777693677941
        ],
        [
          -85.53508758544922,
          33.28777693677941
        ]
      ]
    ]
  }
}
 
//convert to clipsy
var clipsyData = cg.toClipsy(geojsonData)
 
//convert back to geojson
var geo = cg.toGeojson(clipsyData)

Package Sidebar

Install

npm i clipsy-geojson

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • morganherlocker