merc_truncate: merc_truncate

Description Usage Arguments Details Value Examples

Description

Truncate coordinate to Mercator extent.

Usage

1

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

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

merc_truncate(stray)

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