Project

General

Profile

« Previous | Next » 

Revision 13144

inputs/NY/validations.sql, schemas/vegbien.sql: _specimens_13_count_of_all_verbatim_and_decimal_lat_long: added breakdowns _specimens_13a_list_of_all_verbatim_lat_long, _specimens_13b_list_of_all_decimal_lat_long to help troubleshoot the diff

View differences:

vegbien.sql
930 930

  
931 931

  
932 932
--
933
-- Name: keys_~type._specimens_13a_list_of_all_verbatim_lat_long; Type: TYPE; Schema: public_validations; Owner: -
934
--
935

  
936
CREATE TYPE "keys_~type._specimens_13a_list_of_all_verbatim_lat_long" AS (
937
	"verbatimLatitude" text,
938
	"verbatimLongitude" text
939
);
940

  
941

  
942
--
943
-- Name: TYPE "keys_~type._specimens_13a_list_of_all_verbatim_lat_long"; Type: COMMENT; Schema: public_validations; Owner: -
944
--
945

  
946
COMMENT ON TYPE "keys_~type._specimens_13a_list_of_all_verbatim_lat_long" IS '
947
autogenerated
948
';
949

  
950

  
951
--
952
-- Name: keys_~type._specimens_13b_list_of_all_decimal_lat_long; Type: TYPE; Schema: public_validations; Owner: -
953
--
954

  
955
CREATE TYPE "keys_~type._specimens_13b_list_of_all_decimal_lat_long" AS (
956
	"decimalLatitude" double precision,
957
	"decimalLongitude" double precision
958
);
959

  
960

  
961
--
962
-- Name: TYPE "keys_~type._specimens_13b_list_of_all_decimal_lat_long"; Type: COMMENT; Schema: public_validations; Owner: -
963
--
964

  
965
COMMENT ON TYPE "keys_~type._specimens_13b_list_of_all_decimal_lat_long" IS '
966
autogenerated
967
';
968

  
969

  
970
--
933 971
-- Name: keys_~type._specimens_14_count_of_all_invalid_verbatim_lat_long; Type: TYPE; Schema: public_validations; Owner: -
934 972
--
935 973

  
......
1520 1558

  
1521 1559

  
1522 1560
--
1561
-- Name: values__~type._specimens_13a_list_of_all_verbatim_lat_long; Type: TYPE; Schema: public_validations; Owner: -
1562
--
1563

  
1564
CREATE TYPE "values__~type._specimens_13a_list_of_all_verbatim_lat_long" AS (
1565
	"verbatimLatitude" text,
1566
	"verbatimLongitude" text
1567
);
1568

  
1569

  
1570
--
1571
-- Name: TYPE "values__~type._specimens_13a_list_of_all_verbatim_lat_long"; Type: COMMENT; Schema: public_validations; Owner: -
1572
--
1573

  
1574
COMMENT ON TYPE "values__~type._specimens_13a_list_of_all_verbatim_lat_long" IS '
1575
autogenerated
1576
';
1577

  
1578

  
1579
--
1580
-- Name: values__~type._specimens_13b_list_of_all_decimal_lat_long; Type: TYPE; Schema: public_validations; Owner: -
1581
--
1582

  
1583
CREATE TYPE "values__~type._specimens_13b_list_of_all_decimal_lat_long" AS (
1584
	"decimalLatitude" double precision,
1585
	"decimalLongitude" double precision
1586
);
1587

  
1588

  
1589
--
1590
-- Name: TYPE "values__~type._specimens_13b_list_of_all_decimal_lat_long"; Type: COMMENT; Schema: public_validations; Owner: -
1591
--
1592

  
1593
COMMENT ON TYPE "values__~type._specimens_13b_list_of_all_decimal_lat_long" IS '
1594
autogenerated
1595
';
1596

  
1597

  
1598
--
1523 1599
-- Name: values__~type._specimens_14_count_of_all_invalid_verbatim_lat_l; Type: TYPE; Schema: public_validations; Owner: -
1524 1600
--
1525 1601

  
......
3909 3985

  
3910 3986

  
3911 3987
--
3988
-- Name: ~type._specimens_13a_list_of_all_verbatim_lat_long; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
3989
--
3990

  
3991
CREATE TABLE "~type._specimens_13a_list_of_all_verbatim_lat_long" (
3992
    "verbatimLatitude" text,
3993
    "verbatimLongitude" text
3994
);
3995

  
3996

  
3997
--
3998
-- Name: keys("~type._specimens_13a_list_of_all_verbatim_lat_long"); Type: FUNCTION; Schema: public_validations; Owner: -
3999
--
4000

  
4001
CREATE FUNCTION keys(value "~type._specimens_13a_list_of_all_verbatim_lat_long") RETURNS "keys_~type._specimens_13a_list_of_all_verbatim_lat_long"
4002
    LANGUAGE sql IMMUTABLE
4003
    AS $_$
4004
SELECT ROW($1."verbatimLatitude", $1."verbatimLongitude")::public_validations."keys_~type._specimens_13a_list_of_all_verbatim_lat_long"
4005
$_$;
4006

  
4007

  
4008
--
4009
-- Name: ~type._specimens_13b_list_of_all_decimal_lat_long; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
4010
--
4011

  
4012
CREATE TABLE "~type._specimens_13b_list_of_all_decimal_lat_long" (
4013
    "decimalLatitude" double precision,
4014
    "decimalLongitude" double precision
4015
);
4016

  
4017

  
4018
--
4019
-- Name: keys("~type._specimens_13b_list_of_all_decimal_lat_long"); Type: FUNCTION; Schema: public_validations; Owner: -
4020
--
4021

  
4022
CREATE FUNCTION keys(value "~type._specimens_13b_list_of_all_decimal_lat_long") RETURNS "keys_~type._specimens_13b_list_of_all_decimal_lat_long"
4023
    LANGUAGE sql IMMUTABLE
4024
    AS $_$
4025
SELECT ROW($1."decimalLatitude", $1."decimalLongitude")::public_validations."keys_~type._specimens_13b_list_of_all_decimal_lat_long"
4026
$_$;
4027

  
4028

  
4029
--
3912 4030
-- Name: ~type._specimens_14_count_of_all_invalid_verbatim_lat_long; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
3913 4031
--
3914 4032

  
......
4992 5110

  
4993 5111

  
4994 5112
--
5113
-- Name: values_("~type._specimens_13a_list_of_all_verbatim_lat_long"); Type: FUNCTION; Schema: public_validations; Owner: -
5114
--
5115

  
5116
CREATE FUNCTION values_(value "~type._specimens_13a_list_of_all_verbatim_lat_long") RETURNS "values__~type._specimens_13a_list_of_all_verbatim_lat_long"
5117
    LANGUAGE sql IMMUTABLE
5118
    AS $_$
5119
SELECT ROW($1."verbatimLatitude", $1."verbatimLongitude")::public_validations."values__~type._specimens_13a_list_of_all_verbatim_lat_long"
5120
$_$;
5121

  
5122

  
5123
--
5124
-- Name: values_("~type._specimens_13b_list_of_all_decimal_lat_long"); Type: FUNCTION; Schema: public_validations; Owner: -
5125
--
5126

  
5127
CREATE FUNCTION values_(value "~type._specimens_13b_list_of_all_decimal_lat_long") RETURNS "values__~type._specimens_13b_list_of_all_decimal_lat_long"
5128
    LANGUAGE sql IMMUTABLE
5129
    AS $_$
5130
SELECT ROW($1."decimalLatitude", $1."decimalLongitude")::public_validations."values__~type._specimens_13b_list_of_all_decimal_lat_long"
5131
$_$;
5132

  
5133

  
5134
--
4995 5135
-- Name: values_("~type._specimens_14_count_of_all_invalid_verbatim_lat_long"); Type: FUNCTION; Schema: public_validations; Owner: -
4996 5136
--
4997 5137

  
......
9357 9497

  
9358 9498

  
9359 9499
--
9500
-- Name: _specimens_13a_list_of_all_verbatim_lat_long; Type: VIEW; Schema: public_validations; Owner: -
9501
--
9502

  
9503
CREATE VIEW _specimens_13a_list_of_all_verbatim_lat_long AS
9504
 SELECT DISTINCT COALESCE(coordinates.verbatimlatitude, (coordinates.latitude_deg)::text) AS "verbatimLatitude", 
9505
    COALESCE(coordinates.verbatimlatitude, (coordinates.longitude_deg)::text) AS "verbatimLongitude"
9506
   FROM public.coordinates
9507
  WHERE (((coordinates.source_id = ( SELECT public.source_by_shortname(("current_schema"())::text) AS source_by_shortname)) AND ((coordinates.verbatimlatitude IS NOT NULL) OR (coordinates.latitude_deg IS NOT NULL))) AND ((coordinates.verbatimlongitude IS NOT NULL) OR (coordinates.longitude_deg IS NOT NULL)));
9508

  
9509

  
9510
--
9511
-- Name: _specimens_13b_list_of_all_decimal_lat_long; Type: VIEW; Schema: public_validations; Owner: -
9512
--
9513

  
9514
CREATE VIEW _specimens_13b_list_of_all_decimal_lat_long AS
9515
 SELECT DISTINCT coordinates.latitude_deg AS "decimalLatitude", 
9516
    coordinates.longitude_deg AS "decimalLongitude"
9517
   FROM public.coordinates
9518
  WHERE (((coordinates.source_id = ( SELECT public.source_by_shortname(("current_schema"())::text) AS source_by_shortname)) AND (coordinates.latitude_deg IS NOT NULL)) AND (coordinates.longitude_deg IS NOT NULL));
9519

  
9520

  
9521
--
9360 9522
-- Name: _specimens_14_count_of_all_invalid_verbatim_lat_long; Type: VIEW; Schema: public_validations; Owner: -
9361 9523
--
9362 9524

  
......
12516 12678

  
12517 12679

  
12518 12680
--
12681
-- Data for Name: ~type._specimens_13a_list_of_all_verbatim_lat_long; Type: TABLE DATA; Schema: public_validations; Owner: -
12682
--
12683

  
12684

  
12685

  
12686
--
12687
-- Data for Name: ~type._specimens_13b_list_of_all_decimal_lat_long; Type: TABLE DATA; Schema: public_validations; Owner: -
12688
--
12689

  
12690

  
12691

  
12692
--
12519 12693
-- Data for Name: ~type._specimens_14_count_of_all_invalid_verbatim_lat_long; Type: TABLE DATA; Schema: public_validations; Owner: -
12520 12694
--
12521 12695

  

Also available in: Unified diff