geo-to-cartesian

A transform stream to convert latitude and longditude (φ,λ) into Cartesian coordinates [x,y,z].

geo-to-cartesian

A small transform stream to convert latitude and longtitude coordinates into Cartesian coordinates

npm install geo-to-cartesian
 
var geoToCart = require('../index.js');
 
var geoCoordTextStream = fs.createReadStream(__dirname + '/data.txt');
 
geo.pipe(geoToCart).pipe();
 

The expected format of the geographic coordinates stream is an array,

[lat, lon]

Cartesian coordinate bjects are output in the form:

[x, y, z]