mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
129 stars 26 forks source link

gdal warp transform half of the raster #83

Closed MASpikin closed 1 year ago

MASpikin commented 1 year ago

Hi,

i run the code

  const gcps = ['-a_srs', 'EPSG:' + raster_epsg, '-of', 'GTiff', gcp_points];

  const ds_sorce = await gdal.openAsync(source_raster_jpg);
  const out = await gdal.translateAsync(out_gk_raster, ds_sorce, gcps);

  const ds_warp = await gdal.openAsync(out_gk_raster);
  const output = await gdal.warpAsync(out_wgs_raster, null, [ds_warp], ['-t_srs', 'EPSG:4326'])

gdal translate - ok, but gdal warp not work properly - out_raster is half transformed and the other half is epmty or black

image