Skip to main content

A PostGIS approach to database-integrated rock classification

The GEOROC (Geochemistry of Rocks of the Oceans and Continents) database is the largest publicly accessible geochemical database and is providing researchers with geochemical datasets tailored to their specific needs. Rock classifications are stored in the database as the authors of the original publications reported them. This can lead to perceived inconsistencies, especially due to the multiple pathways of rock classification – be it classification by petrological hand specimen observations or based on (semi-)quantitative rock modes or chemical analysis.

To address this problem and to allow the users and providers of geochemical and geological data more freedom in classification-based queries on a multitude of chemical parameters, we present an automated process leveraging geospatial and geometric functions to rapidly classify geochemical datasets. The workflow utilises a PostgreSQL database with the PostGIS extension to treat datapoints as locations and classification polygons as areas on a compositional map. Using spatial intersection SQL functions in the database we can automatically identify which polygon any sample datapoint falls into, thereby assigning the datapoint to a chosen classification convention.

A set of predefined polygons for a large amount of well-established geochemical classification diagrams allows the user to utilise the classification based on the parameters they choose, thereby increasing comparability and interoperability of compiled individual datasets.

To demonstrate this, we apply this methodology to a comprehensive dataset of igneous rocks from the Aeolian Arc, Italy, compiled from GEOROC. Using a Python-based ecosystem connected to Postgres, the data is extracted, classified and mapped directly in one pipeline.

Details

Author
Lars Alfke1, Marie Traun1, Leander Kallas1, Gerhard Wörner1, Matthias Willbold1
Institutionen
1Georg-August University Goettingen, Germany
Veranstaltung
GeoMinBochum 2026
Datum
2026
DOI
10.48380/5da5-hk69