Skip to content

Commit

Permalink
Merge pull request #4 from ShacharOch/patch-1
Browse files Browse the repository at this point in the history
Create baseline_data_junction_50m.sql
  • Loading branch information
ShacharOch authored May 8, 2018
2 parents 46e2acb + e8df39f commit deba44f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Sql/baseline_data_junction_50m.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SELECT
osm_israel."Geometry"
,osm_israel."OSM_name"
,osm_israel.lu_type
,osm_israel.osm_tags

,ST_X(ST_PointOnSurface("Geometry")) as long
,ST_Y(ST_PointOnSurface("Geometry")) as lat

,markers.id

FROM osm_israel
INNER JOIN markers
ON (osm_israel.osm_tags LIKE '%junction%' AND ST_distance(ST_setSRID(osm_israel."Geometry",4326)::geography,markers.geom::geography) < 50)
where created between date '2015-01-01' and date '2018-01-01'
and markers."locationAccuracy" = 1

0 comments on commit deba44f

Please sign in to comment.