mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:27:08 +00:00
Fix error with definition of missing_final_points view
This commit is contained in:
@@ -965,40 +965,6 @@ CREATE TABLE _SURVEY__TEMPLATE_.info (
|
||||
|
||||
ALTER TABLE _SURVEY__TEMPLATE_.info OWNER TO postgres;
|
||||
|
||||
--
|
||||
-- Name: missing_final_points; Type: VIEW; Schema: _SURVEY__TEMPLATE_; Owner: postgres
|
||||
--
|
||||
|
||||
CREATE VIEW _SURVEY__TEMPLATE_.missing_final_points AS
|
||||
SELECT DISTINCT psp.sailline,
|
||||
psp.sailline_ntba,
|
||||
psp.line,
|
||||
psp.point,
|
||||
psp.class,
|
||||
psp.ntba,
|
||||
psp.geometry,
|
||||
psp.meta
|
||||
FROM (survey_3.preplot_saillines_points psp
|
||||
LEFT JOIN ((survey_3.final_lines fl
|
||||
JOIN survey_3.raw_lines rl ON (((fl.sequence = rl.sequence) AND (NOT rl.ntbp))))
|
||||
JOIN survey_3.final_shots fs ON ((fl.sequence = fs.sequence))) ON (((psp.sailline = fl.line) AND (psp.point = fs.point))))
|
||||
WHERE (fl.sequence IS NULL);
|
||||
|
||||
|
||||
ALTER TABLE _SURVEY__TEMPLATE_.missing_final_points OWNER TO postgres;
|
||||
|
||||
--
|
||||
-- Name: VIEW missing_final_points; Type: COMMENT; Schema: _SURVEY__TEMPLATE_; Owner: postgres
|
||||
--
|
||||
|
||||
COMMENT ON VIEW _SURVEY__TEMPLATE_.missing_final_points IS 'Return the set of points which have not yet been shot, or which have
|
||||
been shot only in sequences which have subsequently been marked as
|
||||
NTBP. Note that this includes lines and points which may have been
|
||||
marked as NTBA; we also return those but we report both the line
|
||||
and point NTBA attributes (via preplot_saillines_points.sailline_ntba
|
||||
and preplot_saillines_points.ntba, respectively).';
|
||||
|
||||
|
||||
--
|
||||
-- Name: preplot_lines; Type: TABLE; Schema: _SURVEY__TEMPLATE_; Owner: postgres
|
||||
--
|
||||
@@ -1085,6 +1051,40 @@ being. A better approach would be to explicitly import the sail lines,
|
||||
e.g., by adding a column to the source preplots file.';
|
||||
|
||||
|
||||
--
|
||||
-- Name: missing_final_points; Type: VIEW; Schema: _SURVEY__TEMPLATE_; Owner: postgres
|
||||
--
|
||||
|
||||
CREATE VIEW _SURVEY__TEMPLATE_.missing_final_points AS
|
||||
SELECT DISTINCT psp.sailline,
|
||||
psp.sailline_ntba,
|
||||
psp.line,
|
||||
psp.point,
|
||||
psp.class,
|
||||
psp.ntba,
|
||||
psp.geometry,
|
||||
psp.meta
|
||||
FROM (_SURVEY__TEMPLATE_.preplot_saillines_points psp
|
||||
LEFT JOIN ((_SURVEY__TEMPLATE_.final_lines fl
|
||||
JOIN _SURVEY__TEMPLATE_.raw_lines rl ON (((fl.sequence = rl.sequence) AND (NOT rl.ntbp))))
|
||||
JOIN _SURVEY__TEMPLATE_.final_shots fs ON ((fl.sequence = fs.sequence))) ON (((psp.sailline = fl.line) AND (psp.point = fs.point))))
|
||||
WHERE (fl.sequence IS NULL);
|
||||
|
||||
|
||||
ALTER TABLE _SURVEY__TEMPLATE_.missing_final_points OWNER TO postgres;
|
||||
|
||||
--
|
||||
-- Name: VIEW missing_final_points; Type: COMMENT; Schema: _SURVEY__TEMPLATE_; Owner: postgres
|
||||
--
|
||||
|
||||
COMMENT ON VIEW _SURVEY__TEMPLATE_.missing_final_points IS 'Return the set of points which have not yet been shot, or which have
|
||||
been shot only in sequences which have subsequently been marked as
|
||||
NTBP. Note that this includes lines and points which may have been
|
||||
marked as NTBA; we also return those but we report both the line
|
||||
and point NTBA attributes (via preplot_saillines_points.sailline_ntba
|
||||
and preplot_saillines_points.ntba, respectively).';
|
||||
|
||||
|
||||
--
|
||||
-- Name: missing_sequence_final_points; Type: VIEW; Schema: _SURVEY__TEMPLATE_; Owner: postgres
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user