Skip to main content
Question

Calculate geodesic area of polygons

  • July 7, 2020
  • 1 reply
  • 259 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

palhermans
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 46 replies
  • July 8, 2020

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.