Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

ST_Reverse

Introduction: Return the geometry with vertex order reversed

ST_Reverse

Format: ST_Reverse (A: Geometry)

Return type: 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)