https://github.com/junosuarez/node-worldfile
npm module: generate world files for georeferenced images
https://github.com/junosuarez/node-worldfile
Last synced: 10 months ago
JSON representation
npm module: generate world files for georeferenced images
- Host: GitHub
- URL: https://github.com/junosuarez/node-worldfile
- Owner: junosuarez
- License: isc
- Created: 2014-09-12T00:20:42.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-12T00:20:52.000Z (almost 12 years ago)
- Last Synced: 2025-02-15T16:46:20.354Z (over 1 year ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# worldfile
generate world files for georeferenced images
Worldfiles are a format used for describing how images line up in a coordinate reference system, for example aligning aerial photography to other GIS data. The file format is [described on Wikipedia](https://en.wikipedia.org/wiki/World_file).
## usage
```js
var worldfile = require('worldfile')
worldfile({
scale: {
x: 32.0,
y: -32.0
},
skew: {
x: 0.0,
y: 0.0,
},
origin: {
x: 691200.0,
y: 4576000.0
}
})
// =>
// 32.0
// 0.0
// 0.0
// -32.0
// 691200.0
// 4576000.0
```
## api
### `worldfile : (Object) => String`
Pass in an object with the parameters to georeference your image.
## installation
$ npm install worldfile
## running the tests
From package root:
$ npm install
$ npm test
## contributors
- jden
## license
ISC. (c) MMXIV jden . See LICENSE.md