Add raw_shots_preplots view.

Used by the QC routines.
This commit is contained in:
D. Berge
2020-09-10 20:50:08 +02:00
parent 48f2931a13
commit bda11cc22f

View File

@@ -1113,6 +1113,37 @@ ALTER TABLE _SURVEY__TEMPLATE_.raw_shots_ij_error OWNER TO postgres;
COMMENT ON VIEW _SURVEY__TEMPLATE_.raw_shots_ij_error IS 'Shows the inline / crossline error of raw shots.';
--
-- Name: raw_shots_preplots; Type: VIEW; Schema: _SURVEY__TEMPLATE_; Owner: postgres
--
CREATE VIEW _SURVEY__TEMPLATE_.raw_shots_preplots AS
SELECT rs.sequence,
rs.line,
rs.point,
rs.objref,
rs.tstamp,
rs.hash,
rs.geometry,
rs.meta,
rl.line AS sailline,
rl.remarks,
rl.ntbp,
rl.incr,
rl.meta AS line_meta,
pp.line AS pp_line,
pp.point AS pp_point,
pp.class,
pp.ntba,
pp.geometry AS pp_geometry,
pp.meta AS pp_meta
FROM ((_SURVEY__TEMPLATE_.raw_shots rs
JOIN _SURVEY__TEMPLATE_.raw_lines rl USING (sequence))
JOIN _SURVEY__TEMPLATE_.preplot_points pp ON (((pp.class = 'S'::bpchar) AND (rs.line = pp.line) AND (rs.point = pp.point))));
ALTER TABLE _SURVEY__TEMPLATE_.raw_shots_preplots OWNER TO postgres;
--
-- Name: raw_shots_saillines; Type: VIEW; Schema: _SURVEY__TEMPLATE_; Owner: postgres
--