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

4.11.21.1.
ST_Area
4.11.21.2.
ST_AsText
4.11.21.3.
ST_Centroid
4.11.21.4.
ST_Difference
4.11.21.5.
ST_Distance
4.11.21.6.
ST_EndPoint
4.11.21.7.
ST_ExteriorRing
4.11.21.8.
ST_GeometryN
4.11.21.9.
ST_GeometryType
4.11.21.10.
ST_GeomFromText
4.11.21.11.
ST_InteriorRingN
4.11.21.12.
ST_Intersection
4.11.21.13.
ST_Length
4.11.21.14.
ST_NumGeometries
4.11.21.15.
ST_NumInteriorRings
4.11.21.16.
ST_NumPoints
4.11.21.17.
ST_PointN
4.11.21.18.
ST_SRID
4.11.21.19.
ST_StartPoint
4.11.21.20.
ST_Union
4.11.21.21.
ST_X
4.11.21.22.
ST_Y
4.11.21.23.
ST_Z

previous : next

Feedback

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

The jOOQ Logo