Please show a sample Python code of finding a distance between a point to a polyline in QGIS. (without any plugin)
Asked
Active
Viewed 226 times
1
-
2look at How to draw perpendicular lines in QGIS? – gene Nov 15 '14 at 10:02
-
Welcome to gis.stackexchange! Please note that a good question should mention what you have tried so far and exactly where you are having problems. "Can I have code" questions are generally not well received. – underdark Nov 15 '14 at 18:54
-
Thank you for your kind suggestion. I googled and read the api. I guess QgsDistanceArea can be used but I'm not sure how to use it. I also found that GRASS plugin can be used to find the distance but I don't want to use the plugin if there are another solution. – wannik Nov 17 '14 at 03:59