Skip to content

morganherlocker/clipsy-geojson

Repository files navigation

clipsy-geojson

Build Status

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)

About

conversion module for clipsy and geojson

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published