powered by
Are points in meters within Mercator extent?
within_merc_extent(xy)
a matrix of Mercator xy coordinates.
TRUE or FALSE
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.
# NOT RUN { stray <- matrix(c(20037509, -2918162.223463), nrow = 1) within_merc_extent(stray) # }
Run the code above in your browser using DataLab