This topic describes the ST_Normalize function. This function returns the normalized form of the input geometry object.

Syntax

geometry  ST_Normalize(geometry  geom);

Parameters

Parameter Description
geom The geometry object that you want to specify.

Description

The ST_Normalize function may reorder the vertices of rings of a polygon object, rings in a polygon object, and elements in a MULTI geometry object.

Examples

SELECT ST_AsText(ST_Normalize(ST_GeomFromText('LINESTRING(2 1,1 1)')));
      st_astext
---------------------
 LINESTRING(1 1,2 1)
(1 row)