Update schema: add NTBA columns.

NTBA = Not To Be Acquired. We will ignore those lines
and points in our views / queries when considering
missing shots / completion rates.
This commit is contained in:
D. Berge
2020-08-25 17:58:03 +02:00
parent 0c7b3146ae
commit a9ad5e1c08

View File

@@ -327,6 +327,7 @@ CREATE TABLE _SURVEY__TEMPLATE_.preplot_points (
line integer NOT NULL,
point integer NOT NULL,
class character(1) NOT NULL,
ntba boolean DEFAULT false NOT NULL,
geometry public.geometry(Point,_EPSG__CODE_) NOT NULL
);
@@ -345,6 +346,13 @@ missed shots in acquisition and deliverable lines.
';
--
-- Name: COLUMN preplot_points.ntba; Type: COMMENT; Schema: _SURVEY__TEMPLATE_; Owner: postgres
--
COMMENT ON COLUMN _SURVEY__TEMPLATE_.preplot_points.ntba IS 'Not to be acquired. A value of True causes this preplot not to be reported as a missed shot and not to be taken into account in completion stats.';
--
-- Name: raw_lines; Type: TABLE; Schema: _SURVEY__TEMPLATE_; Owner: postgres
--
@@ -821,6 +829,7 @@ CREATE TABLE _SURVEY__TEMPLATE_.preplot_lines (
class character(1) NOT NULL,
incr boolean DEFAULT true NOT NULL,
remarks text NOT NULL,
ntba boolean DEFAULT false NOT NULL,
geometry public.geometry(LineString,_EPSG__CODE_) NOT NULL,
hash text NOT NULL
);
@@ -847,6 +856,13 @@ indicating the preplot type.
';
--
-- Name: COLUMN preplot_lines.ntba; Type: COMMENT; Schema: _SURVEY__TEMPLATE_; Owner: postgres
--
COMMENT ON COLUMN _SURVEY__TEMPLATE_.preplot_lines.ntba IS 'Not to be acquired. A value of True causes this preplot not to be reported as a missed shot and not to be taken into account in completion stats.';
--
-- Name: preplot_lines_summary; Type: VIEW; Schema: _SURVEY__TEMPLATE_; Owner: postgres
--