Skip to content
Prev 18277 / 29559 Next

gArea() units

I would strongly advise against using EPSG:32640 for any region that
is not nearby to longitude 57E (where "nearby" means within about 6
degrees of longitude (but I'm very wary of providing advice here it's
something I'm not expert in).

Projection choice is really important, and UTM is simply not
appropriate for many applications (in the same way that no projection
is appropriate for all applications). It's certainly not appropriate
to use a UTM zone that is far from the region of study.

Look at the numbers that come out:

## my best-guess
gArea(spTransform(myPolygonSpatial, CRS("+proj=laea +lon_0=-1.92 +
+lat_0=55.7 +datum=WGS84")))/1e6
[1] 5.796854

## UTM that is for a region 56 zones away(!)
gArea(spTransform(myPolygonSpatial, CRS("+init=epsg:32640")))/1e6
[1] 7.475327

A better choice if you must use UTM, would be the right zone:

gArea(spTransform(myPolygonSpatial, CRS("+init=epsg:32631")))/1e6
[1] 5.805833

As Roger points out there is areaPolygon() in geosphere, a good way to
do a check on whether we are in the right ball-park:

areaPolygon(myPolygonSpatial)/1e6
[1] 5.782704

Another thing to worry about if you are reprojecting to get the
calculation properties that you need is the amount of "segmentation"
in the geometry. A "straight-line" in one projection defined by only
two end points can be a rather curved shape in another projection, and
so the shape itself can only be preserved by inserting extra
"redundant" points first. That's not a problem in this particular
example for such a small area on the Earth, though the wrong UTM zone
really is a problem.  (Sometimes itt just depends on the specifics to
an example. . . )


I don't want to get into advising about projections without doing a
lot more work of my own to ensure my advice is sound, but please be
aware that this is something that needs quite a lot of thought by the
user, or alternatively---expert local advice.


Cheers, Mike.
On Wed, May 15, 2013 at 12:20 AM, Johannes Signer <j.m.signer at gmail.com> wrote: