[Qgis-user] Align points to lines

Luis Miguel Royo Perez luis.miguel.royo at gmail.com
Thu Jun 30 05:50:43 PDT 2016


I needed to do the same, and I found this postgis function:

http://postgis.net/docs/ST_ClosestPoint.html

Hope it helps!!

El 30/06/16 a las 14:45, Graham Walker escribió:
>
> need, but I use a combination of the following to snap a point shp to 
> a line shp.
>
> v .to.points set at 0.5m distances on line layer (obviously the lower 
> the more accurate)
>
> Distance to nearest hub from original point to newly created 
> point,output as line
>
> Join attributes by location using v.to.points layer as target and 
> nearest hub layer as join vector layer. Wet predicate to touches. Take 
> attributes of first located feature and only keep matching records.
>
> You could probably query to find the closest line from each point
>




More information about the Qgis-user mailing list