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
_______________________________________________
Qgis-user mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user