Calculate the area of a polygon defined by latitude and longitude points
areaCalculator.Rd
This function takes in latitude and longitude vectors and calculates the area of the polygon defined by those points. It can handle different coordinate systems such as WGS-84, GCJ-02, and BD-09.
Arguments
- longitude
A numeric vector of longitude points.
- latitude
A numeric vector of latitude points.
- coordinate
A string indicating the coordinate system of the input points, can be "WGS-84", "GCJ-02", or "BD-09". Default is "WGS-84".
- chull
A logical value indicating whether to use the convex hull of the points. Default is TRUE.