Closed c101088 closed 3 years ago
On the javascript side the string form of each constant is used, but the binding automatically translates the strings back to integers before calling the native gdal method.
See https://github.com/naturalatlas/node-gdal/blob/master/src/gdal_driver.cpp#L272 for reference.
emmm.... actually , here's my question. When i use the create function in typescript , i could not assign a vaule for the _datatype parameter by using gdal.GDT_* .
here is my code :
const tempDataSet:gdal.Dataset = gdal.drivers.get("GTiff").create("temp//"+destFileName+".tif", width,height,this.band,gdal.GDT_Float32);
I can find the cpp src file gdal.h reference in http://nagyak.eastron.hu/doc/gdal-1.6.2/docs/docs-64/gdal_8h.html , in which , enum GDALDataType show the integer . Could it be useful?