a/gdalwarp

gdalwarp function is an image mosaicing, reprojection and warping utility. The function can reproject to any supported projection, and can also apply GCPs stored with the image if the image is “raw” with control information.

https://gdal.org/programs/gdalwarp.html

Parameters:
Name Type Attributes Description
dataset TypeDefs.Dataset

Dataset to be converted.

options Array <optional>

Options (https://gdal.org/programs/gdalwarp.html#description)

outputName string <optional>

Destination file name without extension.

Returns:
Type:
Promise.<TypeDefs.FilePath>

"Promise" returns paths of created files.

Example
const Gdal = await initGdalJs();
const dataset = (await Gdal.open('data.tif')).datasets[0];
const options = [
  '-of', 'GTiff',
  '-t_srs', 'EPSG:4326'
];
const filePath = await Gdal.gdalwarp(dataset, options);