<div dir="ltr">Hi there, Christoph,<div><br></div><div>generally speaking: I have another perspective about it and would approach your problem it in a different way:</div><div><br></div><div>Instead of pre-defined cut-offs (which are circular reasoning and are often surprising when checked in real world and GIS)</div><div>I would simply run a 'proximity to' points vs line first. And then in the resulting proximity table set a cut-off, select accordingly and see whether</div><div>this achieves the outcome wanted.</div><div><br></div><div>For pre-defined cut-offs, we call it usually 'geographic racism'. </div><div>Instead, we try to celebrate the gradient theory; when tested it often works better in real life.</div><div>Worth a test.</div><div><br></div><div>Just an alternative thought to the problem at hand. </div><div><br></div><div>Thanks, best</div><div>     Falk Huettmann</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 22, 2019 at 3:26 AM Christoph Jung <<a href="mailto:jagodki.cj@gmail.com">jagodki.cj@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you all for your answers. I played a bit with the nnjoins plugin, but Andrews‘ answer is exactly what I was looking for :)<br>
<br>
Sincerely,<br>
Christoph <br>
<br>
> Am 18.10.2019 um 20:50 schrieb Andrew McAninch <<a href="mailto:andrew@rabbit-troop.net" target="_blank">andrew@rabbit-troop.net</a>>:<br>
> <br>
> You can do this in the field calculator with the refFunctions plugin.   It gives you a function, geomnearest(), which will return the WKT geometry of the nearest line(or geomdistance() if you want to limit your search radius).  Then use the closest_point() function to find the nearest point on that line.  something like:<br>
> <br>
> closest_point(geom_from_wkt(geomdistance('lines','$geometry',10)) , $geometry)<br>
> <br>
> <br>
> Andrew<br>
> <br>
> <br>
> <br>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
>> On Thursday, October 17, 2019 11:51 PM, Christoph Jung <<a href="mailto:jagodki.cj@gmail.com" target="_blank">jagodki.cj@gmail.com</a>> wrote:<br>
>> <br>
>> Hello list,<br>
>> <br>
>> Does QGIS has a function to calculate the nearest point on a line layer by a given point layer? In PostGIS i could query it with min(st_distance(...)) or st_closestpoint(...). But I miss such a function directly in QGIS (I just found the plugin Cloest Point, but it has some issues...).<br>
>> <br>
>> Sincerely,<br>
>> Christoph<br>
>> <br>
>> Qgis-user mailing list<br>
>> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> <br>
> <br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>