slf-js
A JavaScript Selafin reader and writer (OpenTelemac).
Install
Install using NPM (npm install slf-js
), then:
// import as a ES module; // or require in Node / Browserifyconst Selafin = ;
Or use a browser build directly:
Usage
new Selafin([buffer, options])
Creates a Selafin object.
buffer
: Buffer/Binary data container the selafin object.options
: Options.
debug
: Debug mode,false
by default.fromProj
: Orginal projection.EPSG:4326
by default.toProj
: Transformation projection.EPSG:4326
by default.
const slf = ; // new without any file/bufferconst slf = bufferdebug:true; // from file/buffer
Selafin Properties
MESHX
: X Coordinate.MESHY
: Y Coordinate.
Options
Empty
Compile, Test, Benchmark Cases
npm run testnpm run build
Examples
Empty
History
0.0.5 - Created selafingl (webgl) and selafinmp(webgl+mapbox)
TODO
- Complete readme
- Complete and have better test cases
- Not sure if Proj4 should be in here