AnsweredAssumed Answered

Labeling polygons with area

Question asked by paul.haakma on Oct 26, 2017
Latest reply on Nov 20, 2019 by xander_bakker

Can anyone clarify what the proper way is to create a label expression in ArcGIS Pro that displays the area of a polygon, no matter the source of the data?


This link:

Specify text for labels—ArcGIS Pro | ArcGIS Desktop 


suggests using (for Python):  round(float([AREA]), 1)

or for Arcade:  round(number($feature.AREA), 1)


But when I try to validate either of those I get the error 'Invalid field AREA'. This happens for polygon datasets I tried both that were hosted in AGOL and from a Portal using Postgres.


Datasets hosted in AGOL seem to have a 'Shape__Area' field that I can label from, but the dataset from the Portal doesn't have that attribute.


So how can/should I be labeling the dataset from Portal? Is there something *wrong* with the Portal dataset, or feature service, or is there another way to access the geometry of the feature?