Is it possible to get terrain or mapping data from Hereflow and if possible how do it get it
If you mean terrain follow it is possible, but the range of Hereflow lidar is only below 2m.
How do we set that function of terrain follow
This is a Ardupilot function. Check the wiki page in my last comment. They explained quite detailly.