KGA Geometry Utilitiesដំណើរការជាបាច់

Update Geometry Fields

គណនា Shape_Length (ប្រវែងសម្រាប់បន្ទាត់ បរិមាត្រសម្រាប់ polygon) និង Shape_Area លើស្រទាប់សកម្ម។ បង្កើត fields បើមិនទាន់មាន។

រកឃើញនៅឯណា
Processing ▸ Toolbox ▸ KGA Toolbox ▸ KGA Geometry Utilities ▸ Update Geometry Fields
លេខសម្គាល់ algorithm
kga:updategeometryfields
ប្រភេទឧបករណ៍
Batch algorithm with no parameters — acts on the active layer

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

Fills Shape_Length and Shape_Area on the layer currently highlighted in the Layers panel, creating the fields if they are missing.

These are the fields ArcGIS maintains automatically. A GeoPackage does not, so after any edit — a split, a merge, a planarize, a reshaped boundary — they are stale. This is the one-click way to bring them back in line before data goes back to an ArcGIS colleague.

ប៉ារ៉ាម៉ែត្រ

None. The tool takes no parameters at all: it reads iface.activeLayer() — whichever layer is highlighted in the Layers panel — and runs straight away, without showing a Processing dialog.

What it computes follows from the geometry type:

Layer typeShape_LengthShape_Area
Linelengthnot created
Polygonperimeterarea
Point— refused ——

របៀបប្រើ

  1. Click the layer in the Layers panel so it is the active layer. This is the only way to choose the layer.
  2. Open KGA Geometry Utilities > Update Geometry Fields. It runs immediately.
  3. A message box reports success, or says why it refused.

លទ្ធផល

  • Shape_Length (double) created if missing and filled for every feature — length for lines, perimeter for polygons.
  • Shape_Area (double) created if missing and filled, for polygon layers.
  • The changes are committed to the layer.

កំណត់សម្គាល់ និងដែនកំណត់

  • It acts on the active layer, with no confirmation. Check which layer is highlighted before running it.
  • The changes are committed immediately — there is no dry run and no edit session left open to undo from.
  • Point layers are refused with a message: there is nothing to measure. Use Update X/Y or Lat/Lon Fields for those.
  • Measurements are ellipsoidal, using the project CRS's ellipsoid, with the layer CRS as the source. The numbers therefore follow the project configuration, not only the layer — set the project ellipsoid deliberately.
  • Features with null or empty geometry are skipped and left as they are.
  • Existing Shape_Length / Shape_Area values are overwritten.
  • The tool cannot run headless: it needs iface for both the active layer and its message boxes.

មើលផងដែរ

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