Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

ST_Reverse

Introduction: Return the geometry with vertex order reversed

Format: ST_Reverse (A: Geometry)

Since: v1.2.1

SQL Example

SELECT ST_Reverse(ST_GeomFromWKT('LINESTRING(0 0, 1 2, 2 4, 3 6)'))

Output:

LINESTRING (3 6, 2 4, 1 2, 0 0)