Available in versions: Dev (3.20) | Latest (3.19) | 3.18 | 3.17 | 3.16

Spatial functions

Applies to ❌ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

A few databases have implemented the ISO/IEC 13249-3 SQL standard spatial extensions (or vendor specific adaptations thereof) to calculate geometric or geographic sets.

These extensions are very useful, and SQL is a perfect match for them. Starting with jOOQ 3.16, we support quite a few of these spatial functions, spatial aggregate and window functions, spatial predicates, and more.

Before moving on with the following chapters of the jOOQ manual, get yourself acquainted with the various standards around spatial data, the WKT (Well-known text representation of geometry), and other related topics, to see how a polygon like:

POLYGON ((-1 -1, 1 -1, 1 1, -1 1, -1 -1))

... can produce the equivalent:




Table of contents

3.10.20.1.
ST_Area (new)
3.10.20.2.
ST_AsText (new)
3.10.20.3.
ST_Centroid (new)
3.10.20.4.
ST_Difference (new)
3.10.20.5.
ST_Distance (new)
3.10.20.6.
ST_EndPoint (new)
3.10.20.7.
ST_ExteriorRing (new)
3.10.20.8.
ST_GeometryN (new)
3.10.20.9.
ST_GeometryType (new)
3.10.20.10.
ST_GeomFromText (new)
3.10.20.11.
ST_InteriorRingN (new)
3.10.20.12.
ST_Intersection (new)
3.10.20.13.
ST_Length (new)
3.10.20.14.
ST_NumGeometries (new)
3.10.20.15.
ST_NumInteriorRings (new)
3.10.20.16.
ST_NumPoints (new)
3.10.20.17.
ST_PointN (new)
3.10.20.18.
ST_SRID (new)
3.10.20.19.
ST_StartPoint (new)
3.10.20.20.
ST_Union (new)
3.10.20.21.
ST_X (new)
3.10.20.22.
ST_Y (new)
3.10.20.23.
ST_Z (new)

previous : next

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo