Skip to content

AppGeo/world-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

create a world file for an image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published