merc_truncate {slippymath} | R Documentation |
merc_truncate
Description
Truncate coordinate to Mercator extent.
Usage
merc_truncate(xy)
Arguments
xy |
a matrix of Mercator XY points. |
Details
If a point in m lies outside the Mercator extent, this function can be used to truncate it to the boundary of the extent.
Value
a matrix of XY points.
Examples
stray <- matrix(c(20037509,
-2918162.223463),
nrow = 1)
merc_truncate(stray)
[Package slippymath version 0.3.1 Index]