Maximum resolution of heightmaps?

This has been mentioned many times. You can’t really do it this way.
https://devsupport.flightsimulator.com/t/3348 You may check Asobo’s KCGX
though, they integrated vertical 3D walls into the terrain very nicely.