Tag Info

Hot answers tagged


I found the answers provided here very helpful and came up with a refined version. So, here's another way to accomplish this task, but without having to alter the original table. SELECT t1.gid AS gid_1, t2.gid AS gid_2, ST_Distance(t1.geom, t2.geom) AS mindist FROM table t1, table t2 WHERE t1.gid != t2.gid AND ST_Distance(t1.geom, t2.geom) != 0 ORDER BY ...


Other way to measure this, it is using Qchainage (QGis plugin) to produce nodes equallly spaced from line. Then, you may use Distance to nearest hub (QGis plugin) to calculate distance among points.

Only top voted, non community-wiki answers of a minimum length are eligible