powered by
Truncate coordinate to Mercator extent.
merc_truncate(xy)
a matrix of Mercator XY points.
a matrix of XY points.
If a point in m lies outside the Mercator extent, this function can be used to truncate it to the boundary of the extent.
# NOT RUN { stray <- matrix(c(20037509, -2918162.223463), nrow = 1) merc_truncate(stray) # }
Run the code above in your browser using DataLab