I'm doing a programming project. It consists of generating a Map (like Google Maps) from height files .HGT
Currently, I can read each file .hgt (each .hgt file have 1201 * 1201 elevation data). For each point I assign a color depending on the elevation. And from this I can generate an image.
My problem Is Not reading the hgt file or generate the image.
To be exact, my problem is to generate the structure of the map and the square projection (by levels). The image below makes it clear what I want to do.
Each tile of each level will have a size of 256px * 256px.
How can I use the .hgt files to create a square projection? (As I said: I'm not an geographic information systems expert)
I have the idea of generate a big image with all .hgt files. After that, I will cut it into into equal pieces of increments of 2^(2x). But the main problem is the square projection...
Additional information: I am not allowed to use third-party software. It is a complete programming project. I have a cluster of 30 machines to do all the work, so you don't have to worry about the calculation power.