PostGIS  2.3.8dev-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 1471 of file lwgeom.c.

References lwgeom_swap_ordinates(), LWORD_X, and LWORD_Y.

Referenced by do_lwgeom_flip_coordinates().

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