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.
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. |
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);