Convert GeoJSON into Wavefront OBJ format
npm install geojson2objGeoJSON to OBJ
==============
A converter from GeoJSON to
Wavefront OBJ format.
There's a small command line example in the examples directory, which you can use to try out the library.
Sample command line:
```
cd examples
./cli.js norway-coastline.geo.json
It should write an OBJ file to your stdout.
Converts the geojson to an OBJ, that is written to the stream.callback
When done, the callback is called; is a normal Node.js callback
accepting an error as the first argument.
Note that the geojson must be a Feature or FeatureCollection.
Available options:
* featureBase: function f(feature, callback) that returns the height offeatureHeight
a feature's base; by default, a function that always returns 0.
* : function f(feature, callback) that returns the height oflineWidth
a feature; by default, a function that returns 10 for polygons and
0.3 for linestrings.
* : for line geometries, returns the width of the generatedfeatureName
geometry; defaults to 2.
* : a function f(feature, callback) that returns the OBJ groupfeatureMaterial
name used for a feature; by default a function that numbers the
features
* : a function f(feature, callback) that returns the namemtllib
of the material for a feature; if undefined, the material is
not changed for this feature; see option belowcoordToPoint
* a function f(coordinate) that returns thefindLocalProj
OBJ vertex point (X and Z) for a GeoJSON coordinate, needed to
convert from GeoJSON's WGS84 coordinates to a cartesian coordinate;
see the method belowmtllib` a string or array of paths that will be added as material
*
libraries to the resulting OBJ