MatthiasKNU
Resource contributor
- Messages
- 962
- Country
Dear All,
I used to have a fantastic little tool called BGLBoundaries that allowed you to save the boundaries of a bgl created with resample.exe as KML.
-> BGLBoundaries to .kml
Unfortunately, the tool no longer exists, but I still need this functionality.
I have already tried to build such a tool myself in Python, I can also read the header of the bgl, but I don't know how to get from the hex codes to the corner coordinates.
I'm still following this help at the moment, from 0x18 the coordinates should come somehow...
Can anyone here help me how to get the coordinates from this byte string, or whether the "old" tool still exists somewhere?
Maybe there is another way to get to the outer limits of this bgl that I haven't thought of yet...
Thank you all!
I used to have a fantastic little tool called BGLBoundaries that allowed you to save the boundaries of a bgl created with resample.exe as KML.
-> BGLBoundaries to .kml
Unfortunately, the tool no longer exists, but I still need this functionality.
I have already tried to build such a tool myself in Python, I can also read the header of the bgl, but I don't know how to get from the hex codes to the corner coordinates.
Code:
with open(bgl_file_path, 'rb') as bgl_file:
data_bytes = bgl_file.read(56)
>> b'1A\x00\x00\xda_\n-\xd4\x17\x05\x00\x93\x00\x00\x00\x01\x00\x01\x001A\x00\x00\xda_\n-\xd4\x17\x05\x00\x94\x00\x00\x00\x01\x00\x01\x001A\x00\x00\xda_\n-\xd4\x17\x05\x00\x95\x00\x00\x00'
I'm still following this help at the moment, from 0x18 the coordinates should come somehow...
BGL File Format - FSDeveloper Wiki
www.fsdeveloper.com
Can anyone here help me how to get the coordinates from this byte string, or whether the "old" tool still exists somewhere?
Maybe there is another way to get to the outer limits of this bgl that I haven't thought of yet...
Thank you all!