0

I am trying to find the depths corresponding to purple point locations (given in picture). Depth information is given in contour lines. The main purpose is applying linear interpolation but I don't know how. I extracted the vertices of contour lines and tried to get the minimum distance between every vertice point and every purple point in python to get the first closest contour line and the second closest contour line. Then I could use 3d interpolation between them to find the depth on that location. But as you can expect, it takes long time. Is there any easier way to do that? Preferably in QGIS or Python.

Red contour lines are indicating depths and purple points are earthquake locations

1 Answer 1

0

In QGIS open the Processing Toolbox. In the search box type in interpolation. You can choose either a TIN interpolation or an IDW interpolation. For the input Vector layer use your lines. For the interpolation attribute use the column of data that you are displaying on your map. After the interpolation use the Sample Raster Values tool to populate your points with the interpolated values of the output raster.

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.