Revision 13734
Added by Aaron Marcuse-Kubitza over 10 years ago
vegbien.sql | ||
---|---|---|
5478 | 5478 |
|
5479 | 5479 |
|
5480 | 5480 |
-- |
5481 |
-- Name: 2014-6-12.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
5482 |
-- |
|
5483 |
|
|
5484 |
CREATE VIEW "2014-6-12.Jeff_Ott.climatic_range_determinants" AS |
|
5485 |
SELECT analytical_stem.datasource, |
|
5486 |
analytical_stem."decimalLatitude", |
|
5487 |
analytical_stem."decimalLongitude", |
|
5488 |
analytical_stem."coordinateUncertaintyInMeters", |
|
5489 |
analytical_stem."dateCollected", |
|
5490 |
analytical_stem."higherPlantGroup_bien" AS "higherPlantGroup", |
|
5491 |
analytical_stem.scrubbed_family AS family, |
|
5492 |
analytical_stem.scrubbed_genus AS genus, |
|
5493 |
analytical_stem.scrubbed_species_binomial AS "speciesBinomial", |
|
5494 |
analytical_stem.scrubbed_taxon_name_with_author AS "scientificName" |
|
5495 |
FROM analytical_stem |
|
5496 |
WHERE ((((((COALESCE((analytical_stem.geovalid_bien)::boolean, false) AND COALESCE((analytical_stem."isNewWorld_bien")::boolean, false)) AND (NOT COALESCE((analytical_stem.cultivated_bien)::boolean, false))) AND (analytical_stem.scrubbed_family IS NOT NULL)) AND (analytical_stem."decimalLatitude" IS NOT NULL)) AND (analytical_stem."decimalLongitude" IS NOT NULL)) AND COALESCE((analytical_stem."coordinateUncertaintyInMeters" <= _km_to_m((10)::double precision)), true)); |
|
5497 |
|
|
5498 |
|
|
5499 |
-- |
|
5481 | 5500 |
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace: |
5482 | 5501 |
-- |
5483 | 5502 |
|
... | ... | |
16538 | 16557 |
|
16539 | 16558 |
|
16540 | 16559 |
-- |
16560 |
-- Name: 2014-6-12.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: - |
|
16561 |
-- |
|
16562 |
|
|
16563 |
REVOKE ALL ON TABLE "2014-6-12.Jeff_Ott.climatic_range_determinants" FROM PUBLIC; |
|
16564 |
REVOKE ALL ON TABLE "2014-6-12.Jeff_Ott.climatic_range_determinants" FROM bien; |
|
16565 |
GRANT ALL ON TABLE "2014-6-12.Jeff_Ott.climatic_range_determinants" TO bien; |
|
16566 |
GRANT SELECT ON TABLE "2014-6-12.Jeff_Ott.climatic_range_determinants" TO bien_read; |
|
16567 |
|
|
16568 |
|
|
16569 |
-- |
|
16541 | 16570 |
-- Name: address; Type: ACL; Schema: public; Owner: - |
16542 | 16571 |
-- |
16543 | 16572 |
|
Also available in: Unified diff
schemas/vegbien.sql: added 2014-6-12.Jeff_Ott.climatic_range_determinants (wiki.vegpath.org/Data_requests)