PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_flip_coordinates()

LWGEOM* lwgeom_flip_coordinates ( LWGEOM in)

Reverse the X and Y coordinate order.

Useful for geometries in lat/lon order than need to be converted to lon/lat order.

NOTE: uses lwgeom_swap_ordinates internally, kept for backward compatibility

Definition at line 1507 of file lwgeom.c.

References lwgeom_swap_ordinates(), LWORD_X, and LWORD_Y.

Referenced by do_lwgeom_flip_coordinates().

1508 {
1510  return in;
1511 }
void lwgeom_swap_ordinates(LWGEOM *in, LWORD o1, LWORD o2)
Swap ordinate values in every vertex of the geometry.
Definition: lwgeom.c:1513
Here is the call graph for this function:
Here is the caller graph for this function: