fix(db): add table/ view gtfs_stops_not_de
This commit is contained in:
parent
10175f509e
commit
79ce42f63e
|
@ -14,6 +14,9 @@ SELECT * FROM :schema_gtfs.stops WHERE location_type=0;
|
|||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stops_de AS
|
||||
SELECT * FROM :schema.vw_gtfs_stops_lt_0 AS stops JOIN public.de_al2_w_ntags_smplcty10_20230818 AS de ON ST_Intersects(stops.the_geom, de.wkb_geometry) order by stop_id;
|
||||
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stops_not_de AS
|
||||
SELECT * FROM :schema.vw_gtfs_stops_lt_0 AS stops_lt_0 WHERE NOT stops_lt_0.stop_id IN (SELECT stops_de.stop_id FROM :schema.vw_gtfs_stops_de AS stops_de);
|
||||
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stops_de_hb AS
|
||||
SELECT * FROM :schema.vw_gtfs_stops_lt_0 AS stops JOIN public.de_hb_al4_w_ntags_smplcty10_20230818 AS de_hb ON ST_Intersects(stops.the_geom, de_hb.wkb_geometry) order by stop_id;
|
||||
CREATE OR REPLACE VIEW :schema.vw_gtfs_stops_de_hh AS
|
||||
|
@ -52,6 +55,8 @@ CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stops_lt_0 AS SELECT stop_id,stop_na
|
|||
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stops_de AS SELECT stop_id,stop_name,stop_lat,stop_lon,the_geom FROM :schema.vw_gtfs_stops_de;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stops_not_de AS SELECT stop_id,stop_name,stop_lat,stop_lon,the_geom FROM :schema.vw_gtfs_stops_not_de;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stops_de_hb AS SELECT stop_id,stop_name,stop_lat,stop_lon,the_geom FROM :schema.vw_gtfs_stops_de_hb;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stops_de_hh AS SELECT stop_id,stop_name,stop_lat,stop_lon,the_geom FROM :schema.vw_gtfs_stops_de_hh;
|
||||
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stops_de_ni AS SELECT stop_id,stop_name,stop_lat,stop_lon,the_geom FROM :schema.vw_gtfs_stops_de_ni;
|
||||
|
|
Loading…
Reference in New Issue