-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ed Chalstrey
authored and
Ed Chalstrey
committed
Mar 23, 2020
1 parent
820a018
commit 2dbf9c1
Showing
5 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Match rule 7 (see doc/matching.md) | ||
\echo -n Performing match rule 7... | ||
|
||
insert into matches | ||
select '7', NULL, osm.master_osm_id, osm_mv_neighbours.mv_id | ||
from osm_mv_neighbours, osm | ||
where osm.osm_id = osm_mv_neighbours.osm_id | ||
and osm_mv_neighbours.distance_meters < 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
select | ||
osm_mv_neighbours.osm_id, | ||
osm.master_osm_id, | ||
machine_vision.mv_id, | ||
osm_mv_neighbours.osm_date, | ||
osm_mv_neighbours.mv_date, | ||
osm_mv_neighbours.osm_area, | ||
osm_mv_neighbours.mv_area, | ||
osm_mv_neighbours.distance_meters, | ||
osm.latitude as osm_lat, | ||
osm.longitude as osm_lon, | ||
machine_vision.latitude as mv_lat, | ||
machine_vision.longitude as mv_lon, | ||
osm.objtype, | ||
osm.located | ||
from osm_mv_neighbours, osm, machine_vision | ||
where osm.osm_id = osm_mv_neighbours.osm_id | ||
and machine_vision.mv_id = osm_mv_neighbours.mv_id | ||
order by distance_meters; |