0

I am developing field area calculator app using gps location.Is there any way to calculate the area of given gps locations?

kirankk
  • 628
  • 1
  • 9
  • 22
  • GPS location is a POINT & you cannot have a Area of a point. So you need to have atleast 3 GPS-points to calculate area. – Parth Kapoor Jul 01 '14 at 11:26
  • I have more than one gps locations or point. – kirankk Jul 01 '14 at 12:07
  • What will be the maximum diameter of the area? – AlexWien Jul 01 '14 at 13:03
  • Related: http://stackoverflow.com/q/1340223/813951 – Mister Smith Jul 01 '14 at 13:07
  • The Google Maps JavaScript API [Polygon module](http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/com/google/gwt/maps/client/overlay/Polygon.html) has a getArea function, but the [equivalent class](http://developer.android.com/reference/com/google/android/gms/maps/model/Polygon.html) in Android does not seem to have it. – Mister Smith Jul 01 '14 at 13:09

1 Answers1

0

You can calculate the area of an polygon that is formed by a sequence of GPS coordinates.

The steps are:

  1. transform the spherical lat/lon coordinates to cartesian space.
  2. Use the general formula for area of polygon.

Code is given in this answer: Polygon area calculation using Latitude and Longitude generated from Cartesian space and a world file

Use the center of the polygon (or just any point of the polygon) as center of transformation. In the code in the link, that is called latAnchor and lonAnchor.

Especially if the diameter of the polygon does not exceed some 10 kilometers this approach works well. For large polygons step 1 becomes more complex.

Community
  • 1
  • 1
AlexWien
  • 28,470
  • 6
  • 53
  • 83