Question

Calculate geodesic area of polygons

  • 7 July 2020
  • 1 reply
  • 19 views

Hi,

 

I hope you can help on this! I would like to calculate the area of a set of polygons in FME, however, when using the AreaCalculator, as we know, we can calculate an area using Geodesic. I found this KB question:

 

https://knowledge.safe.com/questions/35906/how-to-calculate-spherical-area-in-km2-using-pytho-1.html

 

However I am struggling to implement this, would anyone have advice on how to calculate polygon areas, in km2, using geodesic (WGS84 or ED50 for example?)

 

Any advice is super appreciated.


1 reply

Badge

Hi I have not tried, but from other Python experience I often find PyProj simpler to use compared to GeographicLib's Python api. See http://pyproj4.github.io/pyproj/stable/examples.html#geodesic-area

At least when it comes to projection and transformations the excellent algorithms from GeographicLib is implemented in PyProj/Proj.

Reply