Socket
Book a DemoInstallSign in
Socket

clipsy-geojson

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

clipsy-geojson

conversion module for clipsy and geojson

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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)

Keywords

conversion

FAQs

Package last updated on 01 Mar 2014

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