DOI: 10.15468/dl.v76mwr
title: Occurrence Download

description: A dataset containing 576597837 records in GBIF matching the query:
SELECT
 kingdom,
 kingdomkey,
 phylum,
 phylumkey,
 class,
 classkey,
 "order",
 orderkey,
 family,
 familykey,
 genus,
 genuskey,
 species,
 specieskey,
 PRINTF('%04d-%02d', "year", "month") yearmonth,
 GBIF_MGRSCODE(10000, decimallatitude, decimallongitude, 0.0) mgrscellcode,
 COUNT(*) occurrences
FROM
 occurrence
WHERE
 occurrence.basisofrecord = 'HUMAN_OBSERVATION'
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'ZERO_COORDINATE', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_OUT_OF_RANGE', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'GEODETIC_DATUM_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_REPROJECTION_FAILED', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_REPROJECTION_SUSPICIOUS', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_ACCURACY_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_PRECISION_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_UNCERTAINTY_METERS_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_PRECISION_UNCERTAINTY_MISMATCH', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COUNTRY_COORDINATE_MISMATCH', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COUNTRY_MISMATCH', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COUNTRY_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'CONTINENT_COORDINATE_MISMATCH', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'CONTINENT_COUNTRY_MISMATCH', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'CONTINENT_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'PRESUMED_SWAPPED_COORDINATE', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'PRESUMED_NEGATED_LONGITUDE', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'PRESUMED_NEGATED_LATITUDE', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'RECORDED_DATE_MISMATCH', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'RECORDED_DATE_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'RECORDED_DATE_UNLIKELY', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'BASIS_OF_RECORD_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INDIVIDUAL_COUNT_INVALID', TRUE)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INDIVIDUAL_COUNT_CONFLICTS_WITH_OCCURRENCE_STATUS', TRUE)
 AND occurrence.license IN ('CC0_1_0', 'CC_BY_4_0')
 AND occurrence.occurrencestatus = 'PRESENT'
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_FUZZY', TRUE)
 AND (occurrence.distancefromcentroidinmeters &gt;= 2000.0 OR occurrence.distancefromcentroidinmeters IS NULL)
 AND (occurrence.classificationdetails['d7dddbf4-2cf0-4f39-9b2a-bb099caae36c']['specieskey'] &lt;&gt; '' AND occurrence."year" IS NOT NULL AND occurrence."month" IS NOT NULL AND occurrence.hascoordinate = TRUE)
GROUP BY
 occurrence.kingdom,
 occurrence.kingdomkey,
 occurrence.phylum,
 occurrence.phylumkey,
 occurrence.class,
 occurrence.classkey,
 occurrence."order",
 occurrence.orderkey,
 occurrence.family,
 occurrence.familykey,
 occurrence.genus,
 occurrence.genuskey,
 occurrence.species,
 occurrence.specieskey,
 PRINTF('%04d-%02d', occurrence."year", occurrence."month"),
 GBIF_MGRSCODE(10000, occurrence.decimallatitude, occurrence.decimallongitude, 0.0)

 The dataset's 576597837 records were derived from 32040 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0002580-260226173443078/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.