GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gbif/occurrence-cube: User defined functions (UDF) to aggregate species occurrence data with SQL

BranchesTags
Open more actions menu

Latest commit

 

History

82 Commits
82 Commits

Folders and files

NameName
Last commit message
Last commit date
cube-functions
cube-functions
 
 
cube-hive
cube-hive
 
 
cube-spark
cube-spark
 
 
grid-generator
grid-generator
 
 
images
images
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE-APACHE
LICENSE-APACHE
 
 
LICENSE-MIT
LICENSE-MIT
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Occurrence Cube

DOI Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Occurrence Cube provides user defined functions (UDF) to aggregate species occurrence data with Structured Query Language (SQL). They avoid users having to write complex aggregation queries themselves. The functions are especially relevant when creating species occurrence cubes and can be used in the GBIF SQL download API.

Found a bug or have a suggestion? Submit it as an issue.

Example

The following query counts the number of species occurrences from Belgium for each cell in the EEA reference grid. The user defined function GBIF_EEARGCode() simplifies this query.

SELECT
  GBIF_EEARGCode(
    1000,             -- Size of the grid cell (1 km)
    decimalLatitude,  -- Latitude of the occurrence
    decimalLongitude, -- Longitude of the occurrence
    0.0               -- Spatial uncertainty (0 m)
  ) AS eeaCellCode,
  count(*) AS occurrences
FROM
  occurrence
WHERE
  countryCode = 'BE'
GROUP BY
  eeaCellCode

Resources

  • Function documentation: all functions start with GBIF_.
  • Initial specification for the software

Licence

Occurrence Cube is licensed under the Apache License, Version 2.0 or the MIT license, at your option.

Acknowledgements

B3 logoFunded by the European Union

The GBIF development of species occurrence cubes is part of B³ (Biodiversity Building Blocks for policy) Work Package 2, led by the Research Institute for Nature and Forest (INBO) and funded by the European Union’s Horizon Europe Research and Innovation Programme (ID No 101059592).

About

User defined functions (UDF) to aggregate species occurrence data with SQL

techdocs.gbif.org/en/data-use/api-sql-download-functions

Topics

biodiversity-datadata-cubegbifjava

Resources

Readme
Activity
Custom properties

Stars

7 stars

Watchers

11 watching

Forks

2 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.