1

I'm quite new to GDAL and coding in general. I'm trying to convert a whole bunch of TIFFs to ECW's, but just wanted to test with one to start however I think I might be having problems with syntax. I run the below.bat file but nothing happens.

REM"C:\OSGeo4W\bin\gdal_translate.exe" -of GTiff -of ECW 440554775.tif 440554775.ecw
4
  • This question: Convert TIFF to ECW in QGIS may help.
    – ahmadhanb
    Commented Dec 8, 2022 at 0:27
  • 1
    What do you think the REM accomplishes here?
    – Vince
    Commented Dec 8, 2022 at 5:10
  • You have provided two outputformats -of GTiff -of ECW. That does not make sense.
    – user30184
    Commented Dec 8, 2022 at 8:27
  • I didn't realize REM was remarks, thanks.
    – Kevin
    Commented Dec 8, 2022 at 16:07

1 Answer 1

2

In DOS/batch REM is a comment or a remark. It means ignore everything on this line. So your gdal_translate command just gets skipped.

But even if you uncommented by removing the REM, your command would fail as the OSGeo4W ECW package gdal-ecw is read-only:

Write support for ECW and JPEG2000 via the ECW SDK is not available as part of OSGeo4W.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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