Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 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.

share|improve this answer
    
+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 Dec 12 '12 at 13:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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