Applies transform to a raster on the calling thread, keeping its sample type. Output pixels outside the source get the no-data value (0 when the raster has none and the samples are integers, NaN for floats).
transform
const { raster, geoTransform } = warpRaster( { width, height, bands: 4, data: uint16, noData: 0 }, fit.transform, { resample: 'bilinear', coordinateTransform: proj4('EPSG:4326', 'EPSG:3857') },); Copy
const { raster, geoTransform } = warpRaster( { width, height, bands: 4, data: uint16, noData: 0 }, fit.transform, { resample: 'bilinear', coordinateTransform: proj4('EPSG:4326', 'EPSG:3857') },);
Applies
transformto a raster on the calling thread, keeping its sample type. Output pixels outside the source get the no-data value (0 when the raster has none and the samples are integers, NaN for floats).