Creating closest distance line between points and lines in QGISImproving our spatial data by calculating “Close to Coastline”, “Close to Park”, “Close to Stadium” etcCreating new lines along specifically selected existing lines using QGIS?QGIS distance from points to nearest lineError 000725 using Points to LineDraw a perpendicular line between point and line layerMinimum distance from points to nearest line among multiple lines shapefileAligning multiple points to line in QGIS?Create a perpendicular line of points to another lineDistance between reference point to many Points along a lineHow to draw all possible lines between a set of points in QGIS?Creating line from points in QGIS

Why the color red for the Republican Party

Why is this plane circling around the Lucknow airport every day?

Can anyone help me with this trigonometric identity please? I need to prove that its true

Should QA ask requirements to developers?

Making a sword in the stone, in a medieval world without magic

Norms on fields

2000s TV show: people stuck in primitive other world, bit of magic and bit of dinosaurs

Why is there a voltage between the mains ground and my radiator?

How strictly should I take "Candidates must be local"?

Is there any way to damage Intellect Devourer(s) when already within a creature's skull?

Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?

Best approach to update all entries in a list that is paginated?

Fourth person (in Slavey language)

Do items de-spawn in Diablo?

Replacing Windows 7 security updates with anti-virus?

How to create a hard link to an inode (ext4)?

infinitive telling the purpose

Built-In Shelves/Bookcases - IKEA vs Built

Set and print content of environment variable in cmd.exe subshell?

Is Gradient Descent central to every optimizer?

Force user to remove USB token

How do I deal with a powergamer in a game full of beginners in a school club?

Does splitting a potentially monolithic application into several smaller ones help prevent bugs?

Do I really need to have a scientific explanation for my premise?



Creating closest distance line between points and lines in QGIS


Improving our spatial data by calculating “Close to Coastline”, “Close to Park”, “Close to Stadium” etcCreating new lines along specifically selected existing lines using QGIS?QGIS distance from points to nearest lineError 000725 using Points to LineDraw a perpendicular line between point and line layerMinimum distance from points to nearest line among multiple lines shapefileAligning multiple points to line in QGIS?Create a perpendicular line of points to another lineDistance between reference point to many Points along a lineHow to draw all possible lines between a set of points in QGIS?Creating line from points in QGIS













2















QGIS
I have multiple lines in one layer (trench) and multiple points in another later.



I've searched the whole Internet for a plug-in which can: connect points to the nearest line, creating a new line in a new layer.



Maybe the plug-in is already there, but I couldn't find it...



What I have:



without_lines



Desired output:



created_new_lines










share|improve this question









New contributor




Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Which software is that? QGIS or ArcGIS?

    – Taras
    13 hours ago











  • Interesting would be the feature count of both of your layers. It looks like your using OpenStreetMap data. According to big data sets you have to think of spatial indexes.

    – Stefan
    12 hours ago















2















QGIS
I have multiple lines in one layer (trench) and multiple points in another later.



I've searched the whole Internet for a plug-in which can: connect points to the nearest line, creating a new line in a new layer.



Maybe the plug-in is already there, but I couldn't find it...



What I have:



without_lines



Desired output:



created_new_lines










share|improve this question









New contributor




Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Which software is that? QGIS or ArcGIS?

    – Taras
    13 hours ago











  • Interesting would be the feature count of both of your layers. It looks like your using OpenStreetMap data. According to big data sets you have to think of spatial indexes.

    – Stefan
    12 hours ago













2












2








2








QGIS
I have multiple lines in one layer (trench) and multiple points in another later.



I've searched the whole Internet for a plug-in which can: connect points to the nearest line, creating a new line in a new layer.



Maybe the plug-in is already there, but I couldn't find it...



What I have:



without_lines



Desired output:



created_new_lines










share|improve this question









New contributor




Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












QGIS
I have multiple lines in one layer (trench) and multiple points in another later.



I've searched the whole Internet for a plug-in which can: connect points to the nearest line, creating a new line in a new layer.



Maybe the plug-in is already there, but I couldn't find it...



What I have:



without_lines



Desired output:



created_new_lines







qgis points-to-line






share|improve this question









New contributor




Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 11 hours ago









Taras

2,1972726




2,1972726






New contributor




Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 13 hours ago









Mathijs AlkemaMathijs Alkema

112




112




New contributor




Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mathijs Alkema is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1





    Which software is that? QGIS or ArcGIS?

    – Taras
    13 hours ago











  • Interesting would be the feature count of both of your layers. It looks like your using OpenStreetMap data. According to big data sets you have to think of spatial indexes.

    – Stefan
    12 hours ago












  • 1





    Which software is that? QGIS or ArcGIS?

    – Taras
    13 hours ago











  • Interesting would be the feature count of both of your layers. It looks like your using OpenStreetMap data. According to big data sets you have to think of spatial indexes.

    – Stefan
    12 hours ago







1




1





Which software is that? QGIS or ArcGIS?

– Taras
13 hours ago





Which software is that? QGIS or ArcGIS?

– Taras
13 hours ago













Interesting would be the feature count of both of your layers. It looks like your using OpenStreetMap data. According to big data sets you have to think of spatial indexes.

– Stefan
12 hours ago





Interesting would be the feature count of both of your layers. It looks like your using OpenStreetMap data. According to big data sets you have to think of spatial indexes.

– Stefan
12 hours ago










2 Answers
2






active

oldest

votes


















2














You can use the QGIS Python console for this. The output results as a memory layer. I'm using QGIS 2.18.28. Probably in QGIS 3 the code does not work, due to software changes.



Just paste this code into the Python console. You have to edit the code according to your layer names. In my case I have a shapefile points and a shapefile lines. You have to know the projection of your shapefiles and they have to have the same projection. Otherwise we have to do some transformation. Choose the right projection when adding the memory layer.



from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qgis.networkanalysis import *

# define input layer points and lines
p_lyr = QgsMapLayerRegistry.instance().mapLayersByName('points')[0] # set your point layer name here
l_lyr = QgsMapLayerRegistry.instance().mapLayersByName('lines')[0] # set your line layer name here
lines = [feature for feature in l_lyr.getFeatures()]

# set up memory layer for the closest distance line
d_lyr = QgsVectorLayer('LineString', 'normalVector', 'memory')
QgsMapLayerRegistry.instance().addMapLayer(d_lyr)
prov = d_lyr.dataProvider()

# adding three attributes (holding point_id, line_id and the distance)
prov.addAttributes( [ QgsField("point_id", QVariant.Int), QgsField("line_id", QVariant.Int), QgsField("distance",QVariant.Int)])

feat = []
for points in p_lyr.getFeatures():
# find closest point to line
minDistPoint = min([l.geometry().closestSegmentWithContext(QgsPoint(points.geometry().asPoint())) for l in lines])[1]
feat = QgsFeature()
# create line from point to minDistPoint
line = QgsGeometry.fromPolyline([QgsPoint(points.geometry().asPoint()), QgsPoint(minDistPoint[0], minDistPoint[1])])
feat.setGeometry(line)
# adding point id, line id and length of the closest distance line as a feature to the memory layer
feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()])
prov.addFeatures([feat])

d_lyr.updateExtents()
d_lyr.triggerRepaint()
d_lyr.updateFields()


enter image description here






share|improve this answer

























  • This won't work at my Qgis.. Maybe I'm doing something wrong..? Can you pm me, so I can share my shapefiles with you?

    – Mathijs Alkema
    11 hours ago











  • Please clarify: QGIS version (2 or 3), any errors (Python console or other). Do you know how to use the Python console? See the docs docs.qgis.org/2.18/en/docs/user_manual/plugins/….

    – Stefan
    9 hours ago











  • my shapefiles have an attribute called "id". For the resulting closest distance lines they will be adopted. See the penultimate line in the for loop: feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()]). You have to replace the "id" regarding the attributes of your shapefiles. I can edit the code when only the distance is needed.

    – Stefan
    9 hours ago


















1














There is not such a plugin. And if you do not want to use python, you can combine two build-in algorithms in QGIS3



I think that this answer can solve your problem: https://gis.stackexchange.com/a/280787/7849






share|improve this answer
























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "79"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Mathijs Alkema is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315171%2fcreating-closest-distance-line-between-points-and-lines-in-qgis%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    You can use the QGIS Python console for this. The output results as a memory layer. I'm using QGIS 2.18.28. Probably in QGIS 3 the code does not work, due to software changes.



    Just paste this code into the Python console. You have to edit the code according to your layer names. In my case I have a shapefile points and a shapefile lines. You have to know the projection of your shapefiles and they have to have the same projection. Otherwise we have to do some transformation. Choose the right projection when adding the memory layer.



    from PyQt4.QtCore import *
    from PyQt4.QtGui import *
    from qgis.core import *
    from qgis.gui import *
    from qgis.networkanalysis import *

    # define input layer points and lines
    p_lyr = QgsMapLayerRegistry.instance().mapLayersByName('points')[0] # set your point layer name here
    l_lyr = QgsMapLayerRegistry.instance().mapLayersByName('lines')[0] # set your line layer name here
    lines = [feature for feature in l_lyr.getFeatures()]

    # set up memory layer for the closest distance line
    d_lyr = QgsVectorLayer('LineString', 'normalVector', 'memory')
    QgsMapLayerRegistry.instance().addMapLayer(d_lyr)
    prov = d_lyr.dataProvider()

    # adding three attributes (holding point_id, line_id and the distance)
    prov.addAttributes( [ QgsField("point_id", QVariant.Int), QgsField("line_id", QVariant.Int), QgsField("distance",QVariant.Int)])

    feat = []
    for points in p_lyr.getFeatures():
    # find closest point to line
    minDistPoint = min([l.geometry().closestSegmentWithContext(QgsPoint(points.geometry().asPoint())) for l in lines])[1]
    feat = QgsFeature()
    # create line from point to minDistPoint
    line = QgsGeometry.fromPolyline([QgsPoint(points.geometry().asPoint()), QgsPoint(minDistPoint[0], minDistPoint[1])])
    feat.setGeometry(line)
    # adding point id, line id and length of the closest distance line as a feature to the memory layer
    feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()])
    prov.addFeatures([feat])

    d_lyr.updateExtents()
    d_lyr.triggerRepaint()
    d_lyr.updateFields()


    enter image description here






    share|improve this answer

























    • This won't work at my Qgis.. Maybe I'm doing something wrong..? Can you pm me, so I can share my shapefiles with you?

      – Mathijs Alkema
      11 hours ago











    • Please clarify: QGIS version (2 or 3), any errors (Python console or other). Do you know how to use the Python console? See the docs docs.qgis.org/2.18/en/docs/user_manual/plugins/….

      – Stefan
      9 hours ago











    • my shapefiles have an attribute called "id". For the resulting closest distance lines they will be adopted. See the penultimate line in the for loop: feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()]). You have to replace the "id" regarding the attributes of your shapefiles. I can edit the code when only the distance is needed.

      – Stefan
      9 hours ago















    2














    You can use the QGIS Python console for this. The output results as a memory layer. I'm using QGIS 2.18.28. Probably in QGIS 3 the code does not work, due to software changes.



    Just paste this code into the Python console. You have to edit the code according to your layer names. In my case I have a shapefile points and a shapefile lines. You have to know the projection of your shapefiles and they have to have the same projection. Otherwise we have to do some transformation. Choose the right projection when adding the memory layer.



    from PyQt4.QtCore import *
    from PyQt4.QtGui import *
    from qgis.core import *
    from qgis.gui import *
    from qgis.networkanalysis import *

    # define input layer points and lines
    p_lyr = QgsMapLayerRegistry.instance().mapLayersByName('points')[0] # set your point layer name here
    l_lyr = QgsMapLayerRegistry.instance().mapLayersByName('lines')[0] # set your line layer name here
    lines = [feature for feature in l_lyr.getFeatures()]

    # set up memory layer for the closest distance line
    d_lyr = QgsVectorLayer('LineString', 'normalVector', 'memory')
    QgsMapLayerRegistry.instance().addMapLayer(d_lyr)
    prov = d_lyr.dataProvider()

    # adding three attributes (holding point_id, line_id and the distance)
    prov.addAttributes( [ QgsField("point_id", QVariant.Int), QgsField("line_id", QVariant.Int), QgsField("distance",QVariant.Int)])

    feat = []
    for points in p_lyr.getFeatures():
    # find closest point to line
    minDistPoint = min([l.geometry().closestSegmentWithContext(QgsPoint(points.geometry().asPoint())) for l in lines])[1]
    feat = QgsFeature()
    # create line from point to minDistPoint
    line = QgsGeometry.fromPolyline([QgsPoint(points.geometry().asPoint()), QgsPoint(minDistPoint[0], minDistPoint[1])])
    feat.setGeometry(line)
    # adding point id, line id and length of the closest distance line as a feature to the memory layer
    feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()])
    prov.addFeatures([feat])

    d_lyr.updateExtents()
    d_lyr.triggerRepaint()
    d_lyr.updateFields()


    enter image description here






    share|improve this answer

























    • This won't work at my Qgis.. Maybe I'm doing something wrong..? Can you pm me, so I can share my shapefiles with you?

      – Mathijs Alkema
      11 hours ago











    • Please clarify: QGIS version (2 or 3), any errors (Python console or other). Do you know how to use the Python console? See the docs docs.qgis.org/2.18/en/docs/user_manual/plugins/….

      – Stefan
      9 hours ago











    • my shapefiles have an attribute called "id". For the resulting closest distance lines they will be adopted. See the penultimate line in the for loop: feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()]). You have to replace the "id" regarding the attributes of your shapefiles. I can edit the code when only the distance is needed.

      – Stefan
      9 hours ago













    2












    2








    2







    You can use the QGIS Python console for this. The output results as a memory layer. I'm using QGIS 2.18.28. Probably in QGIS 3 the code does not work, due to software changes.



    Just paste this code into the Python console. You have to edit the code according to your layer names. In my case I have a shapefile points and a shapefile lines. You have to know the projection of your shapefiles and they have to have the same projection. Otherwise we have to do some transformation. Choose the right projection when adding the memory layer.



    from PyQt4.QtCore import *
    from PyQt4.QtGui import *
    from qgis.core import *
    from qgis.gui import *
    from qgis.networkanalysis import *

    # define input layer points and lines
    p_lyr = QgsMapLayerRegistry.instance().mapLayersByName('points')[0] # set your point layer name here
    l_lyr = QgsMapLayerRegistry.instance().mapLayersByName('lines')[0] # set your line layer name here
    lines = [feature for feature in l_lyr.getFeatures()]

    # set up memory layer for the closest distance line
    d_lyr = QgsVectorLayer('LineString', 'normalVector', 'memory')
    QgsMapLayerRegistry.instance().addMapLayer(d_lyr)
    prov = d_lyr.dataProvider()

    # adding three attributes (holding point_id, line_id and the distance)
    prov.addAttributes( [ QgsField("point_id", QVariant.Int), QgsField("line_id", QVariant.Int), QgsField("distance",QVariant.Int)])

    feat = []
    for points in p_lyr.getFeatures():
    # find closest point to line
    minDistPoint = min([l.geometry().closestSegmentWithContext(QgsPoint(points.geometry().asPoint())) for l in lines])[1]
    feat = QgsFeature()
    # create line from point to minDistPoint
    line = QgsGeometry.fromPolyline([QgsPoint(points.geometry().asPoint()), QgsPoint(minDistPoint[0], minDistPoint[1])])
    feat.setGeometry(line)
    # adding point id, line id and length of the closest distance line as a feature to the memory layer
    feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()])
    prov.addFeatures([feat])

    d_lyr.updateExtents()
    d_lyr.triggerRepaint()
    d_lyr.updateFields()


    enter image description here






    share|improve this answer















    You can use the QGIS Python console for this. The output results as a memory layer. I'm using QGIS 2.18.28. Probably in QGIS 3 the code does not work, due to software changes.



    Just paste this code into the Python console. You have to edit the code according to your layer names. In my case I have a shapefile points and a shapefile lines. You have to know the projection of your shapefiles and they have to have the same projection. Otherwise we have to do some transformation. Choose the right projection when adding the memory layer.



    from PyQt4.QtCore import *
    from PyQt4.QtGui import *
    from qgis.core import *
    from qgis.gui import *
    from qgis.networkanalysis import *

    # define input layer points and lines
    p_lyr = QgsMapLayerRegistry.instance().mapLayersByName('points')[0] # set your point layer name here
    l_lyr = QgsMapLayerRegistry.instance().mapLayersByName('lines')[0] # set your line layer name here
    lines = [feature for feature in l_lyr.getFeatures()]

    # set up memory layer for the closest distance line
    d_lyr = QgsVectorLayer('LineString', 'normalVector', 'memory')
    QgsMapLayerRegistry.instance().addMapLayer(d_lyr)
    prov = d_lyr.dataProvider()

    # adding three attributes (holding point_id, line_id and the distance)
    prov.addAttributes( [ QgsField("point_id", QVariant.Int), QgsField("line_id", QVariant.Int), QgsField("distance",QVariant.Int)])

    feat = []
    for points in p_lyr.getFeatures():
    # find closest point to line
    minDistPoint = min([l.geometry().closestSegmentWithContext(QgsPoint(points.geometry().asPoint())) for l in lines])[1]
    feat = QgsFeature()
    # create line from point to minDistPoint
    line = QgsGeometry.fromPolyline([QgsPoint(points.geometry().asPoint()), QgsPoint(minDistPoint[0], minDistPoint[1])])
    feat.setGeometry(line)
    # adding point id, line id and length of the closest distance line as a feature to the memory layer
    feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()])
    prov.addFeatures([feat])

    d_lyr.updateExtents()
    d_lyr.triggerRepaint()
    d_lyr.updateFields()


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 12 hours ago

























    answered 12 hours ago









    StefanStefan

    2,67912041




    2,67912041












    • This won't work at my Qgis.. Maybe I'm doing something wrong..? Can you pm me, so I can share my shapefiles with you?

      – Mathijs Alkema
      11 hours ago











    • Please clarify: QGIS version (2 or 3), any errors (Python console or other). Do you know how to use the Python console? See the docs docs.qgis.org/2.18/en/docs/user_manual/plugins/….

      – Stefan
      9 hours ago











    • my shapefiles have an attribute called "id". For the resulting closest distance lines they will be adopted. See the penultimate line in the for loop: feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()]). You have to replace the "id" regarding the attributes of your shapefiles. I can edit the code when only the distance is needed.

      – Stefan
      9 hours ago

















    • This won't work at my Qgis.. Maybe I'm doing something wrong..? Can you pm me, so I can share my shapefiles with you?

      – Mathijs Alkema
      11 hours ago











    • Please clarify: QGIS version (2 or 3), any errors (Python console or other). Do you know how to use the Python console? See the docs docs.qgis.org/2.18/en/docs/user_manual/plugins/….

      – Stefan
      9 hours ago











    • my shapefiles have an attribute called "id". For the resulting closest distance lines they will be adopted. See the penultimate line in the for loop: feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()]). You have to replace the "id" regarding the attributes of your shapefiles. I can edit the code when only the distance is needed.

      – Stefan
      9 hours ago
















    This won't work at my Qgis.. Maybe I'm doing something wrong..? Can you pm me, so I can share my shapefiles with you?

    – Mathijs Alkema
    11 hours ago





    This won't work at my Qgis.. Maybe I'm doing something wrong..? Can you pm me, so I can share my shapefiles with you?

    – Mathijs Alkema
    11 hours ago













    Please clarify: QGIS version (2 or 3), any errors (Python console or other). Do you know how to use the Python console? See the docs docs.qgis.org/2.18/en/docs/user_manual/plugins/….

    – Stefan
    9 hours ago





    Please clarify: QGIS version (2 or 3), any errors (Python console or other). Do you know how to use the Python console? See the docs docs.qgis.org/2.18/en/docs/user_manual/plugins/….

    – Stefan
    9 hours ago













    my shapefiles have an attribute called "id". For the resulting closest distance lines they will be adopted. See the penultimate line in the for loop: feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()]). You have to replace the "id" regarding the attributes of your shapefiles. I can edit the code when only the distance is needed.

    – Stefan
    9 hours ago





    my shapefiles have an attribute called "id". For the resulting closest distance lines they will be adopted. See the penultimate line in the for loop: feat.setAttributes([int(points["id"]), int(l["id"]), line.geometry().length()]). You have to replace the "id" regarding the attributes of your shapefiles. I can edit the code when only the distance is needed.

    – Stefan
    9 hours ago













    1














    There is not such a plugin. And if you do not want to use python, you can combine two build-in algorithms in QGIS3



    I think that this answer can solve your problem: https://gis.stackexchange.com/a/280787/7849






    share|improve this answer





























      1














      There is not such a plugin. And if you do not want to use python, you can combine two build-in algorithms in QGIS3



      I think that this answer can solve your problem: https://gis.stackexchange.com/a/280787/7849






      share|improve this answer



























        1












        1








        1







        There is not such a plugin. And if you do not want to use python, you can combine two build-in algorithms in QGIS3



        I think that this answer can solve your problem: https://gis.stackexchange.com/a/280787/7849






        share|improve this answer















        There is not such a plugin. And if you do not want to use python, you can combine two build-in algorithms in QGIS3



        I think that this answer can solve your problem: https://gis.stackexchange.com/a/280787/7849







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 12 hours ago

























        answered 12 hours ago









        PieterBPieterB

        2,5061126




        2,5061126




















            Mathijs Alkema is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            Mathijs Alkema is a new contributor. Be nice, and check out our Code of Conduct.












            Mathijs Alkema is a new contributor. Be nice, and check out our Code of Conduct.











            Mathijs Alkema is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315171%2fcreating-closest-distance-line-between-points-and-lines-in-qgis%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Era Viking Índice Início da Era Viquingue | Cotidiano | Sociedade | Língua | Religião | A arte | As primeiras cidades | As viagens dos viquingues | Viquingues do Oeste e Leste | Fim da Era Viquingue | Fontes históricas | Referências Bibliografia | Ligações externas | Menu de navegação«Sverige då!»«Handel I vikingetid»«O que é Nórdico Antigo»Mito, magia e religião na volsunga saga Um olhar sobre a trajetória mítica do herói sigurd«Bonden var den verklige vikingen»«Vikingatiden»«Vikingatiden»«Vinland»«Guerreiras de Óðinn: As Valkyrjor na Mitologia Viking»1519-9053«Esculpindo símbolos e seres: A arte viking em pedras rúnicas»1679-9313Historia - Tema: VikingarnaAventura e Magia no Mundo das Sagas IslandesasEra Vikinge

            What's the metal clinking sound at the end of credits in Avengers: Endgame?What makes Thanos so strong in Avengers: Endgame?Who is the character that appears at the end of Endgame?What happens to Mjolnir (Thor's hammer) at the end of Endgame?The People's Ages in Avengers: EndgameWhat did Nebula do in Avengers: Endgame?Messing with time in the Avengers: Endgame climaxAvengers: Endgame timelineWhat are the time-travel rules in Avengers Endgame?Why use this song in Avengers: Endgame Opening Logo Sequence?Peggy's age in Avengers Endgame

            Are there legal definitions of ethnicities/races? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Legal definitions in the United StatesAre there truly legal limits on US interest rates?Are gender identity and sexual orientation federally protected?Why is there an apparent legal bias against digital services?What limits are there to the powers of individual judges in the United States legal system?Are women only scholarships legal under Irish / EU law?Is the term “race” defined by Public Law enacted by Congress of the United StatesIs there a legal definition of race in the US?Neighbors are spying for landlord on Renters is it legal?Are Protected Classes Bi-directional?