earth-mesh
generate triangulated meshes from shapefiles and geojson
usage
usage: earth-mesh FILE {OPTIONS}
-i --iformat Input format: zip, json
Reads from stdin when FILE is "-" or not provided.
example
from geojson
var createMesh =var fs =var file = processargv2var geodata = JSONvar mesh =console
from a zipped shapefile
var createMesh =var shp =var fs =var file = processargv2var geodata = shpvar mesh =console
api
var createMesh =
var mesh = createMesh(geodata, opts)
Create a simplicial complex mesh
from some geojson-formatted data.
install
To get the library:
npm install earth-mesh
To get the command:
npm install -g earth-mesh
license
BSD