Available in versions: Dev (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

4.8.19.1.
ST_Area (new)
4.8.19.2.
ST_AsText (new)
4.8.19.3.
ST_Centroid (new)
4.8.19.4.
ST_Difference (new)
4.8.19.5.
ST_Distance (new)
4.8.19.6.
ST_EndPoint (new)
4.8.19.7.
ST_ExteriorRing (new)
4.8.19.8.
ST_GeometryN (new)
4.8.19.9.
ST_GeometryType (new)
4.8.19.10.
ST_GeomFromText (new)
4.8.19.11.
ST_InteriorRingN (new)
4.8.19.12.
ST_Intersection (new)
4.8.19.13.
ST_Length (new)
4.8.19.14.
ST_NumGeometries (new)
4.8.19.15.
ST_NumInteriorRings (new)
4.8.19.16.
ST_NumPoints (new)
4.8.19.17.
ST_PointN (new)
4.8.19.18.
ST_SRID (new)
4.8.19.19.
ST_StartPoint (new)
4.8.19.20.
ST_Union (new)
4.8.19.21.
ST_X (new)
4.8.19.22.
ST_Y (new)
4.8.19.23.
ST_Z (new)

The jOOQ User Manual : SQL building : Column expressions : Spatial functionsprevious : next

Feedback

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

The jOOQ Logo