Skip to main content
Question

Calculate area of polygon with AreaCalculator and other but they all generates incorrect result, coordinate system is EPSG:3857, Workspace and Data are attached. Not sure what I am doing wrong

  • September 8, 2021
  • 4 replies
  • 103 views

mikamattila
Contributor
Forum|alt.badge.img

"Calculatearea" is the file containing the original data, Test1-3 are the different approaches I have tried shown in the workspace.

4 replies

david_r
Celebrity
  • September 8, 2021

Try using the GeographicAreaCalculator from the FME Hub and specify a local projection for the area which you're calculating.


mikamattila
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • September 9, 2021
david_r wrote:

Try using the GeographicAreaCalculator from the FME Hub and specify a local projection for the area which you're calculating.

Hello David,

In the workspace I have included a test with GeographicAreaCalculator but still incorrect results. No sure what I am doing wrong since the transformer has high reviews. For reference a polygon named "sycklinge 1:22" is supposed to be 1265 square meters but the result I get from the transformer is an area of "1.9299688569405845e-7"


david_r
Celebrity
  • September 9, 2021
mikamattila wrote:

Hello David,

In the workspace I have included a test with GeographicAreaCalculator but still incorrect results. No sure what I am doing wrong since the transformer has high reviews. For reference a polygon named "sycklinge 1:22" is supposed to be 1265 square meters but the result I get from the transformer is an area of "1.9299688569405845e-7"

I'm fairly certain this is a projection and/or coordinate system issue, not a problem with the transformer.

The GeoJSON has a header that says it's in EPSG:3857, but can we be 100% sure? Looking in the GeoJSON, the coordinates seem to be in degrees, not meters which is what EPSG:3857 would indicate.

Try overriding the coordinate system on the reader to "LL84" and see if the results make more sense.


mikamattila
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • September 15, 2021
mikamattila wrote:

Hello David,

In the workspace I have included a test with GeographicAreaCalculator but still incorrect results. No sure what I am doing wrong since the transformer has high reviews. For reference a polygon named "sycklinge 1:22" is supposed to be 1265 square meters but the result I get from the transformer is an area of "1.9299688569405845e-7"

Thank you David, this solved the issue!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings