within_merc_extent {slippymath} | R Documentation |
within_mercator_extent
Description
Are points in meters within Mercator extent?
Usage
within_merc_extent(xy)
Arguments
xy |
a matrix of Mercator xy coordinates. |
Details
When doing maths with Mercator coordinates in m, you can end up outside the Mercator extent with an undefined coordinate. This function returns true if all xy lie within the Mercator extent.
Value
TRUE or FALSE
Examples
stray <- matrix(c(20037509,
-2918162.223463),
nrow = 1)
within_merc_extent(stray)
[Package slippymath version 0.3.1 Index]