How can I use gdal_translate in node-gdal?

I'm trying to use the following command:

gdal_translate C:\test.tif cog.tif -co TILED=YES -co COPY_SRC_OVERVIEWS=YES -co COMPRESS=DEFLATE.
  • Do you have GDAL available at all? Does gdalinfo --version show anything?
    – user30184
    Jan 14 at 16:52
  • What do you mean if I have gdal available? I can get some infos about a tif etc. but I can’t figured it out how to do the same with this package as I can do with OsGeo command shell.
    – BR75
    Jan 14 at 17:34
  • Not so well formulated question but you seem to have working node java bindings. I have no experience on coding with node. Perhaps the links here help github.com/naturalatlas/node-gdal/issues/216 but you must write some code "node-gdal has all the pieces needed to do everything gdal_translate does – you will just have to create the dataset, set the geoTransform, read and write the data, etc yourself."
    – user30184
    Jan 14 at 17:47

1 Answer 1


node-gdal does not come with GDAL's CLI tools.

The only version of node-gdal that supports gdal_translate and does so as the library call gdal.translate() is node-gdal-async

(Disclaimer: I am the author of node-gdal-async)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.