SHAPE_area and SHAPE_length are typically esri internal/reserved fields that hold you features geometry and other info. If you want to calculate an area and control the format and display, I would recommend creating a new field (e.g. I create a sqmi field for my area) and than calculatig from the SHAPE_area field as needed. This new field however will not update automatically if the geometry changes.
Thank you Rebecca for your reply.
I think that your suggestion can not be valid due to updated that can happen for the geometry as you mentioned above.
However, I guess it is much better to change the display for decimal number in ArcGIS server.
Is there an option or method to change the display of decimal number for ArcGIS server level?
All the Best,
Fatin
No, there is no way to limit the decimal points within ArcGIS Server; you should do this within client applications.
The ArcGIS Server neither respect the number of decimal places nor showing the comma separator when it comes to Area and Length fields! Why does it fail to do so?
However, other web application doesn’t respect this neither!
It's interesting that ArcMap would honor the setting, but that may be because you're consuming the service in the same client that you previously configured the field in. The service is really just being rendered from an mxd type file anyway.
This is still a client side problem, though. In ArcGIS Online, by configured the attributes for the data, the display is changed for the data throughout the application:
Might be difficult to see but the Shape_Length field, (red outline), is not configured to use 1000 separators, and the Shape_Area field, (blue outline) is. In a popup and the attribute table, those settings are respected. ArcGIS Online by default set the Use 1000 Separator option to true.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.