-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi changeRangeR team,
I want to draw attention to a common error in geographic data analysis: using rasters in geographic coordinate systems (such as WGS84) for area calculations in meters. While these projections are commonly used to display geographic data, they are inappropriate for accurate area measurements in meters. The area of a pixel can vary significantly depending on its location, particularly at high latitudes. As a result, using unprojected rasters in WGS84 for area calculations can produce inaccurate and misleading results.
To illustrate this point, I have created a plot showing how the area of pixels changes with latitude. As you can see, there is significant distortion in the areas of pixels at higher latitudes.

As you can see in the plot, it is incorrect to assume that a pixel resolution of 30 arcseconds is approximately 1 km². At the equator, a 30-arcsecond pixel has an area of approximately 0.85 km². However, at higher latitudes, such as New York City at 40 degrees, the area of a 30-arcsecond pixel is approximately 0.65 km². Any area calculation using AOOarea() with an unprojected raster in WGS84 will be at least 15% off.
Therefore, I suggest we encourage using appropriate projections for accurate area measurements in meters. While UTM and Lambert conformal conic projections are commonly used to represent shapes accurately, equal-area projections are designed to preserve the area of features. Also, vignettes and documentation should be updated.
Feel free to let me know if you have any questions.
Best,
Gonzalo