within_merc_extent: within_mercator_extent

Description Usage Arguments Details Value Examples

Description

Are points in meters within Mercator extent?

Usage

1

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

1
2
3
4
5
stray <- matrix(c(20037509,
                   -2918162.223463),
                 nrow = 1)

within_merc_extent(stray)

slippymath documentation built on June 28, 2019, 5:04 p.m.