Label Control
បើកកម្មវិធីបង្កើតកន្សោមស្លាកជាទម្រង់មើលឃើញ ដែលផ្សំស្លាក Arcade ច្រើនបន្ទាត់ពីវាល និងអនុគមន៍ ជាមួយការមើលជាមុនផ្ទាល់ និងការគ្រប់គ្រងពុម្ពអក្សរ ទំហំ និងពណ៌តាមផ្នែក។
- រកឃើញនៅឯណា
- KGA Toolbox ▸ Data Management ▸ Quick Label ▸ Label Control
ទិដ្ឋភាពទូទៅ
ArcGIS Pro's own label expression box is a plain text editor — you write Arcade by hand and find out whether it works by applying it. This tool builds the expression from a row-based interface, previews the rendered result as you go, and lets each segment carry its own formatting.
ការប្រើប្រាស់
- The dialog is organised around a list of expression rows. Each row contributes one segment of the finished label, and the rows are joined in order.
- Rows are managed with the buttons beside the list:
| Control | Effect |
|---|---|
| + Click to add new expression line / + New | Adds a row |
| ↑ / ↓ | Moves a row up or down, changing segment order |
| Duplicate | Copies a row, keeping its formatting |
| ✕ | Removes a row |
| Reset | Clears the builder |
| Reload from layer | Reads the expression currently on the layer back into the builder |
| Copy | Copies the generated Arcade expression to the clipboard |
- Concatenation mode controls how each row joins to the next:
NewLineis how a stacked label — parcel number above area, for example — is built.
| Mode | Joins with |
|---|---|
NoSpace | Nothing — segments run together |
Space | A single space |
Custom | Text you supply |
NewLine | A line break, producing a stacked multi-line label |
Tab | A tab |
- Functions are available per row and cover the usual label needs:
DefaultValueis worth noting — it substitutes a fallback where a field is null, which avoids the blank and<Null>labels that plague real data. UseSuperscript (sup)for units such as m².
| Group | Functions |
|---|---|
| Text | Concatenate, Left, Right, Find, Replace, Trim, Upper, Lower, Proper, Length, Text |
| Numeric | Round, Ceil, Floor, Count |
| Date | Year, Month, Hour, Minute |
| Logic | When, Decode, DefaultValue |
| Formatting | Superscript (sup), Subscript (sub) |
- Formatting can be set globally — Global Font Name, Global Size, Global Style, Global Color — and then overridden on individual rows, so one segment can be bold or coloured while the rest stays plain. For Khmer text, choose a Unicode Khmer font such as
Khmer OSorHanuman. - Label Class selects which of the layer's label classes the expression is written to, so existing label classes need not be disturbed. Label Position sets the placement.
- The Preview pane renders the label as it will appear, segment formatting included. Check it before applying — it catches null-value and spacing problems that are invisible in the raw expression.
- Labeling applies the expression to the chosen label class and turns labelling on.
- Unlike Show Area and the Display tools, this builder writes a normal label class. The result is saved with the project, prints, and can be edited afterwards in the standard Labeling ribbon.
ប៉ារ៉ាម៉ែត្រ
This tool opens a window rather than a geoprocessing dialog. Its controls are:
| ផ្ទាំងគ្រប់គ្រង | ការពិពណ៌នា |
|---|---|
| Layer | The feature layer to label. |
| Label Class | The label class the expression is written to. |
| Label Position | The label placement option. |
| Source | The field or function inserted into the current row. |
| Expression rows | The ordered segments making up the label, each with its own function, concatenation mode, and optional formatting override. |
| Global Font Name | The default font for all segments. Choose a Unicode Khmer face for Khmer text. |
| Global Size | The default text size. |
| Global Style | The default text style. |
| Global Color | The default text colour. |
| Current Label Expression | The generated Arcade expression, read-only. Use Copy to take it elsewhere. |
| Preview | A live rendering of the finished label. |
របៀបប្រើ
- In the Contents pane, select the layer to label.
- On the KGA Toolbox tab, in the Data Management group, open the Quick Label menu and click Label Control.
- Confirm Layer and choose the Label Class to write to.
- Click + Click to add new expression line and pick a field in Source.
- Add further rows for each segment. Set each row's concatenation mode — use
NewLinewhere the label should stack onto a second line. - Apply a function to a row where the raw field value is not what you want —
Roundfor an area,DefaultValueto avoid a blank label,Superscript (sup)for a unit. - Set Global Font Name, Global Size, Global Style, and Global Color, then override individual rows as needed.
- Check the Preview pane. Confirm null values and spacing look right.
- Click Labeling to apply the expression and switch labelling on.
ព័ត៌មានអាជ្ញាបណ្ណ
Requires an active KGA Toolbox license. The tool validates the license before running.