• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading in hght files into java  RSS feed

 
suraj sahitya
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have to read SRTM .hgt binary files in Java and then rewrite them in a binary proprietary format. The format is to write the .hgt file as 2-dimensional binary array of either 1 byte, 2 byte, 3 byte or 4 byte integers in BIG ENDIAN format. I have chosen short as the data type(2 bytes) because I believe the data in the .hgt file has the maximum value of 32767. I am enclosing the code here - how do I read the data into 2-dimensional array ?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!