Quick Labelពាក្យបញ្ជាចុចម្តង

Show Length

បិទ-បើកការដាក់ស្លាកប្រវែងខ្សែលើស្រទាប់ខ្សែដែលបានជ្រើស ដោយប្រើកន្សោម Arcade ដែលគណនាពេលគូស។

រកឃើញនៅឯណា
KGA Toolbox ▸ Data Management ▸ Quick Label ▸ Show Length
ប៉ារ៉ាម៉ែត្រ

This tool has no parameters. It acts on the layer selected in the Contents pane.

ទិដ្ឋភាពទូទៅ

Unlike the Display Length and Vertex 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 line layer must be selected in the Contents pane. The button is disabled otherwise, and its tooltip says why:
ConditionTooltip
No map openNo active map view.
Nothing selectedSelect a line feature layer in the Contents pane.
Selection is not a feature layerSelected item is not a feature layer.
Wrong geometry typeShow Length requires a line 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: The geodesic fallback keeps the labels meaningful on an unprojected layer, where a planar length would be in degrees.
Layer coordinate systemArcade expression
ProjectedLength($feature) — in the layer's own units
GeographicLengthGeodetic($feature, 'meters') — geodesic length in metres
  • Labelling is applied through a dedicated label class named KGA_ShowLength. While it is active, the layer's other label classes are hidden. 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.

របៀបប្រើ

  1. In the Contents pane, click the line layer to select it.
  2. On the KGA Toolbox tab, in the Data Management group, open the Quick Label menu and click Show Length.
  3. The labels appear on the map.
  4. To remove them, select the same layer and click Show Length again.

ព័ត៌មានអាជ្ញាបណ្ណ

Requires an active KGA Toolbox license. The tool validates the license before running.

មើលផងដែរ

ត្រឡប់ទៅឯកសារណែនាំ