Quick Labelពាក្យបញ្ជាចុចម្តង
Show Area
បិទ-បើកការដាក់ស្លាកផ្ទៃក្រឡាពហុកោណលើស្រទាប់ដែលបានជ្រើស ដោយប្រើកន្សោម Arcade ដែលគណនាពេលគូស។
- រកឃើញនៅឯណា
- KGA Toolbox ▸ Data Management ▸ Quick Label ▸ Show Area
- ប៉ារ៉ាម៉ែត្រ
This tool has no parameters. It acts on the layer selected in the Contents pane.
ទិដ្ឋភាពទូទៅ
Unlike the Display Area tool, which draws temporary graphics, this tool creates a real label class — so the labels are saved with the project, honour label placement settings, and print.
ការប្រើប្រាស់
- This is a toggle. Click once to turn the labelling on, click again to turn it off. There is no dialog.
- A polygon layer must be selected in the Contents pane. The button is disabled otherwise, and its tooltip says why:
| Condition | Tooltip |
|---|---|
| No map open | No active map view. |
| Nothing selected | Select a polygon feature layer in the Contents pane. |
| Selection is not a feature layer | Selected item is not a feature layer. |
| Wrong geometry type | Show Area requires a polygon layer. |
- No fields are created and the schema is untouched. The value is computed from the geometry by an Arcade expression each time the map draws, so it stays correct after an edit and works identically on geodatabase feature classes and shapefiles.
- The expression adapts to the layer's coordinate system: Because the geographic case falls back to a geodesic calculation in square metres, the labels stay meaningful even on an unprojected layer — where a plain planar area would be in square degrees.
| Layer coordinate system | Arcade expression |
|---|---|
| Projected | Area($feature) — in the layer's own square units |
| Geographic | AreaGeodetic($feature, 'square-meters') — geodesic area in square metres |
- Labelling is applied through a dedicated label class named
KGA_ShowArea. While it is active, the layer's other label classes are hidden so the area labels are not competing with existing labels. Toggling the tool off removes the class and restores the previous label visibility exactly as it was. - Because the label is an expression rather than a stored value, it cannot be exported to a table or joined. To store the value as an attribute, use Calculate Geometry (on the Calculation gallery) instead.
របៀបប្រើ
- In the Contents pane, click the polygon layer to select it.
- On the KGA Toolbox tab, in the Data Management group, open the Quick Label menu and click Show Area.
- The labels appear on the map.
- To remove them, select the same layer and click Show Area again.
ព័ត៌មានអាជ្ញាបណ្ណ
Requires an active KGA Toolbox license. The tool validates the license before running.