g_swap_xy()
swaps x and y coordinates of the input geometry.
Wrapper of OGR_G_SwapXY()
in the GDAL API.
Arguments
- geom
Either a raw vector of WKB or list of raw vectors, or a character vector containing one or more WKT strings.
- as_wkb
Logical value,
TRUE
to return the output geometry in WKB format (the default), orFALSE
to return as WKT.- as_iso
Logical value,
TRUE
to export as ISO WKB/WKT (ISO 13249 SQL/MM Part 3), orFALSE
(the default) to export as "Extended WKB/WKT".- byte_order
Character string specifying the byte order when output is WKB. One of
"LSB"
(the default) or"MSB"
(uncommon).- quiet
Logical value,
TRUE
to suppress warnings. Defaults toFALSE
.