View source: R/UtilityFunctions.R
computeClipBufferForCONUS | R Documentation |
The web Mercator projection does not maintain accurate distances. The distortions increase as you move away from the equator so a correction is needed to produce sample areas that are consistent in size for a set of samples across a range latitudes.
computeClipBufferForCONUS(
desiredBuffer,
centerPointLatitude = NULL,
points = NULL
)
desiredBuffer |
A single numeric value defining the desired buffer
size or a vector of numeric values with the desired buffer sizes. If a
vector of sizes is provided, it must be the same length as the vector
provided for |
centerPointLatitude |
A single numeric value or vector of values containing the latitude of the sample points. |
points |
A |
computeClipBufferForCONUS
uses a correction multiplier developed
for latitudes ranging from 23-49 degrees by comparing 1000m squares
defined in the web Mercator projection to their size when reprojected
into UTM. While this is still not a perfect solution, it provides
a correction factor that gets you very close to the desired sample
size.
A single value that is the buffer width needed to produce the
desiredBuffer
or a vector of buffer widths needed to produce the
desiredBuffer
for each sample point.
## Not run:
computeClipBufferForCONUS(1000, 41.5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.