daaaa fuck !!!! ill do it.
all geodata aria is a 256X256
one point from this aria is 8x8
so we read firs 18 file bytes
then we need to read file as integer(2xbytes)
firs number will be the height type header next number depends on header
we have 3 types of header:
1: when the integer = 0 after that go's 2 integers which meen height
_
._._._._._._._._. |
|1|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |<--- this is 1 point of 256x256
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|2|<-. |
| _|
|
'--- this is 1 point of 8x8
2: when the integer = 64 after that go's 64 integers of height
._._._._._._._._.
|1|9|_|_|_|_|_|_|
|2|.|_|_|_|_|_|_|
|3|.|_|_|_|_|_|_|
|4|_|_|_|_|_|_|_|
|5|_|_|_|_|_|_|_|
|6|_|_|_|_|_|_|.|
|7|_|_|_|_|_|_|.|
|8|_|_|_|_|_|_|64
3: when the interger = any number that numbet meen's how many heighs will by now
[height_number]
[Flors_number]
[first_flor_height][second_flor_height][n..........]......
[flors_number]
[first_flor_height][second_flor_height][n..........]..
[flor.......
height_nuber meens one pixel of 256x256
flors_numbers will be 64
flor_height depends on flor_number
************************************************** ************************************
|