Converters for various coordinate representations.
$ npm install --save lonlat
var lonlat = require('lonlat');
lonlat.geojson.centerSphere();
lonlat.mongo.toPoly();
-
centerSphere
- create a Sphere corresponding to inscribed circle -
multiPolygon
- create a Polygon from the string of coordinates -
polygon
- create a Polygon from the string of coordinates -
shapesArray
- split boxes into Polygons and Multipolygons -
splitBox
- split box into grid of Polygons
toLonLat
toPoly
toBox
toBoxes
MIT © Damian Krzeminski