1.0.0 • Published 8 years ago

world-file v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

world-file

generate a world file for data if you give it the dimensions and the corner points. Based off code by Peter Girard translated from C#.

API

worldfile(width, height, corners);

where corners is an object with cooridnates for the corners of the image, in the form

{
  tr: [1, 1],
  tl: [0, 1],
  br: [1, 0]
}

coordinates are geojson style so x,y lon,lat, tr is top right, tl is top left, br is bottom right, input is in lat lon wgs84, output is in web mercator.

1.0.0

8 years ago