Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

wld-reader

Read World Files (e.g., .gfw, .jgw, .j2w, .pgw, .tfw, and .wld)

basic usage

constreadWorldFile=require('wld-reader');constworldFile=`2445.984905124989400-2445.984905124997699959.8502412351323859.6754601842`;constresult=readWorldFile(worldFile);{xScale: 2445.9849051249894,ySkew: 0,xSkew: 0,yScale: -2445.98490512499,xOrigin: 7699959.850241235,yOrigin: 1323859.6754601842}

advanced usage

If you want to preserve the raw string of text:

constresult=readWorldFile(worldFile,{raw: true});{xScale: "2445.9849051249894",ySkew: "0",xSkew: "0",yScale: "-2445.98490512499",xOrigin: "7699959.850241235",yOrigin: "1323859.6754601842"}

Reference

https://en.wikipedia.org/wiki/World_file

Support

Post an issue at http://github.com/worldfile/wld-reader/issues or email the package author at daniel.j.dufour@gmail.com

About

Read World Files (e.g., .gfw, .jgw, .j2w, .pgw, .tfw, and .wld)

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages