Skip to content

With One Function, Load a GeoTIFF from an ArrayBuffer, Blob, Buffer, DataView, File or URL

License

Notifications You must be signed in to change notification settings

GeoTIFF/geotiff-from

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geotiff-from

With One Function, Load a GeoTIFF from an ArrayBuffer, Blob, Buffer, DataView, File, TypedArray, or URL

features

  • overview detection
  • url caching

install

npm install geotiff-from

usage

const from = require("geotiff-from");

const geotiff = await from(url);
const geotiff = await from([url, overview]);
const geotiff = await from(blob);
const geotiff = await from(arrayBuffer);
const geotiff = await from(buffer);
const geotiff = await from(dataView);
const geotiff = await from(uint8Array);

advanced usage

automatically detect overview files

If you pass a URL to geotiff-from, it can automatically check if an overview file exists by issuing HEAD requests. If you'd like to turn on this functionality, do

const geotiff = await from(url, { ovr: true });

About

With One Function, Load a GeoTIFF from an ArrayBuffer, Blob, Buffer, DataView, File or URL

Resources

License

Stars

Watchers

Forks

Packages

No packages published