将坐标多边形内的面积转换为米 [英] Converting area within a polygon of coordinates to metres

查看:61
本文介绍了将坐标多边形内的面积转换为米的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出了一组坐标

 lat <- c(47.2325618, 47.2328269, 47.2330041, 47.2330481, 47.2330914, 
          47.2331172, 47.2331291, 47.2331499)
 lon <- c(11.3707441, 11.3707791, 11.3708087, 11.3708031, 11.3707818, 
          11.3707337, 11.3706588, 11.370284)
coords <- cbind(lon,lat)

我想计算多边形的面积.我使用软件包 splancs 中的函数areapl():

I want to calculate the area of the polygon. I use the function areapl() from package splancs:

library(splancs)
areapl(coords)
# [1] 1.4768e-07

这给我留下了以平方(?)为单位的尺寸.所以我的问题是:如何将其转换为米/公里?

this leaves me with a dimension in degrees squared (?). so my question is: how do i convert this into metres/kilometres?

非常感谢.

推荐答案

要么使用sp软件包中的spTransform转换为笛卡尔网格系统(例如UTM区域),要么尝试使用geosphere中的areaPolygon >包装.

Either convert to a cartesian grid system (eg a UTM zone) using spTransform in the sp package, or try areaPolygon in the geosphere package.

> areaPolygon(coords)
[1] 7688.568

这篇关于将坐标多边形内的面积转换为米的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆