Skip to content

GeoTIFF Atlas - Pack many geotiffs into a single texture atlas

License

Notifications You must be signed in to change notification settings

VisualPerspective/geotiff-atlas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoTIFF Atlas

Pack many geotiffs covering the same area and projection into a single texture atlas. Command line tool, currently used to pre-process data for our NDVI Viewer

Note: this is alpha software and requires more documentation and tests before being generally useful.

Running the project

To run the project, you'll need:

  • Node 9+
  • A recent version of Yarn

Example usage:

  • Clone this repo, and run yarn to install dependencies
  • Run yarn build to build the project
  • Download the iceland geotiffs and configuration:
    • curl https://storage.googleapis.com/iceland-ndvi/static/iceland-ndvi-tiffs.zip > iceland-ndvi-tiffs.zip
    • Unzip the file and you'll see some example input files for this tool:
      • A JSON configuration file which describes the input data
      • a folder of geotiffs
  • Run the tool with node dist/geotiff-atlas.js --config iceland-ndvi-tiffs/input/ndvi.json --outputFolder iceland-ndvi-tiffs/output
  • You'll see two new files in the iceland-ndvi-tiffs/output folder:
    • ndvi.atlas, a binary file containing the geotiff data, usable as a WebGL texture
    • ndvi.atlas.json, a configuration file describing how the geotiffs are packed into the texture atlas

See our NDVI Viewer repository for examples of loading and accessing the tiff data stored within the atlas.

About

GeoTIFF Atlas - Pack many geotiffs into a single texture atlas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published