3

Is there any possibility that two diffrent versions of gdal (1.7.3 and I believe 1.9.0) can give me two diffrent results with given:

  • two RGB files.Each twith 3 layers - input1.png and input2.png
  • command gdal_merge -o output_file.img -of HFA -separate input1.png input2.png

On version 1.9.0 i get 6 layered img file (3layers + 3 layers). On gdal 1.7.3 i get somehow 2 layers (not six) and i cannot recognize which layer is from which image.

These are really the same input files (i literally copied them to diffrent computer) and i used gdal from command line. What's funny is that it works good on windows, and on one ubuntu but on the other ubuntu it works not as predicted. It's the last idea i come with (diffrent gdal versions), but i find it very strange and unbelivable that same program works so much diffrently on diffrent versions.

1 Answer 1

1

Yes, the two different version of GDAL_merge do behave differently. I ran into a similar problem (see this post), though yours appears to be a little different.

Basically, I think that the more recent version is the one to trust. The reason it works differently is because thankfully it has been updated, so it should not be unbelievable.

1
  • +1 I'd also favor the more recent builds. As for differences between the 1.7.x releases and 1.8+, I recall a series of discussions in the GDAL dev mailing list noting issues specifically affecting HFA outputs, a quick search found this one and this one.
    – elrobis
    Commented Dec 12, 2012 at 13:46

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.