Skip to content

mattholl/geo-to-cartesian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo-to-cartesian

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

Get it from npm

npm install geo-to-cartesian

Pipe in some geographic coordinates

var geoToCart = require('geo-to-cartesian');

var geoCoordTextStream = fs.createReadStream('data.txt');

geo.pipe(geoToCart).pipe(outputStream);

Get some Cartesian ones out

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

[lat, lon]

Cartesian coordinate bjects are output in the form:

[x, y, z]

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published