How to plot a cross section between two pairs of lat/long using a tiff file in python?
At first glance, it seems i have to calculate points position between these two desired points and then looking for nearest points in tiff to get their elevation.
Until now i could:
# Read tiff data
ds = gdal.Open('cliped.tif')
# Read it as Array
a=ds.ReadAsArray()
but the problem is data point has no projection so i can not search for lat/long pairs!
Best Answer
You have the start of the solution to your problem. Here is the basic workflow:
The code follows: