1

Please show a sample Python code of finding a distance between a point to a polyline in QGIS. (without any plugin)

3
  • 2
    look at How to draw perpendicular lines in QGIS?
    – gene
    Nov 15, 2014 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, 2014 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, 2014 at 3:59

0

Your Answer

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

Browse other questions tagged or ask your own question.