Skip to main content
Question

Calculating polygon area

  • November 18, 2018
  • 6 replies
  • 72 views

Forum|alt.badge.img

I am converting a kml to shp and trying to calculate the area of the resulting polygons. It seems to run okay, but I don't see the calculated result. The field that should have it is blank in the attribute table in ArcMap. Here is the AreaCalculator transformer:

This is Inspector:

Is it actually doing the calculation? Where is the result?

Thank you..

6 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • November 18, 2018

Hi @regulusdeneb Is _area an attribute on the output schema or does the ExpressionEvaluator set a new attribute with the area? The Data Inspector is only showing the output of the AttributeCreator which is before the AreaCalculator.


Forum|alt.badge.img

I changed _result to AREAHA in ExperssionEvaluator and AttributeRounder and the result still does not get written. I should have mentioned this earlier (sorry).. I have a dialog box pop up when I run it that says, "...some features were read that did not match a reader feature type in the workspace." Is this what is causing the problem?

I expose kml_description and kml_name in the reader, then change their names in AttributeCreator, then reproject to UTM NAD83. Thank you..


fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • November 19, 2018
regulusdeneb wrote:

I changed _result to AREAHA in ExperssionEvaluator and AttributeRounder and the result still does not get written. I should have mentioned this earlier (sorry).. I have a dialog box pop up when I run it that says, "...some features were read that did not match a reader feature type in the workspace." Is this what is causing the problem?

I expose kml_description and kml_name in the reader, then change their names in AttributeCreator, then reproject to UTM NAD83. Thank you..

@regulusdeneb I don't think the pop-up is the problem. Can you send your workspace to https://www.safe.com/support/report-a-problem/ ? Thanks


Forum|alt.badge.img+2

Hi @regulusdeneb

I see there is a red arrow on the input of the Writer.

This would suggest that some of the writer attributes are not picking up an input. If you click on the drop down arrow you will be able to see which ones are missing and manually connect them to the right output from the ExpressionEvaluator.

 


Forum|alt.badge.img
hollyatsafe wrote:

Hi @regulusdeneb

I see there is a red arrow on the input of the Writer.

This would suggest that some of the writer attributes are not picking up an input. If you click on the drop down arrow you will be able to see which ones are missing and manually connect them to the right output from the ExpressionEvaluator.

 

Thank you both for your help to this point. I have uploaded the workspace to Safe at @DanAtSafe's request. Btw, I managed to hook up kml_descri in the writer with kml_description in AttributeRounder and made kml_descri's arrow green. But I still get "Unexpected input" to pop up when I run it.


Forum|alt.badge.img

Thank you again for the help. I ran this after almost a month away from it and it works now despite that I did not change anything. I guess I just needed to close FME and reboot maybe.


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