An Emscripten port of GDAL 2.4.
npm install gdal-js
Caution! It is strongly recommended to run this code inside of a web worker.
To see complete examples for how to do this, checkout the examples
directory.
From simplest to most complex, these are:
inspect_geotiff
inspect_vector
map_extent
thumbnail
thumbnail_map
tile_tiff
If you want to use GDAL from within a Node application, you are probably looking for https://www.npmjs.com/package/gdal.
This library exports the following GDAL functions:
For documentation of these functions' behavior, please see the GDAL documentation
In order to limit build size, GDAL is currently built with raster support for GeoTIFFs, PNGs, and JPEGs only.
./scripts/setup
, which will build the Docker container../scripts/make gdal
. The make script just calls make
from inside the Docker container../scripts/make clean
works as expected../scripts/make VERSION=<number> release