Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #84 from Oslandia/correlation_distance
Browse files Browse the repository at this point in the history
Compare with correlation distance
  • Loading branch information
pblottiere committed Jan 3, 2019
2 parents 64e4fb4 + e1d93e6 commit 6c85e65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions albion.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@ join _albion.node as ne on ne.hole_id=he.id, tan_ang
where ns.graph_id = ne.graph_id
and abs(st_z(st_3dlineinterpolatepoint(ns.geom, .5))-st_z(st_3dlineinterpolatepoint(ne.geom,.5)))
/st_distance(st_3dlineinterpolatepoint(ns.geom, .5), st_3dlineinterpolatepoint(ne.geom, .5)) < tan_ang.value
and st_distance( ne.geom, ns.geom ) < ( select correlation_distance from albion.metadata )
and ns.parent is null
and ne.parent is null

Expand Down

0 comments on commit 6c85e65

Please sign in to comment.