KGA Schema Toolsដំណើរការជាបាច់

Validate Against Domains

ពិនិត្យ feature នីមួយៗធៀបនឹង field domains ដែលស្រទាប់របស់វាប្រកាស ហើយរាយតម្លៃដែលបំពាន។

រកឃើញនៅឯណា
Processing ▸ Toolbox ▸ KGA Toolbox ▸ KGA Schema Tools ▸ Validate Against Domains
លេខសម្គាល់ algorithm
kga:validate_against_domains
ប្រភេទឧបករណ៍
Batch algorithm

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

A domain constrains new edits — but data that predates the domain, or that arrived through an import, is never re-checked. Attaching a domain does not clean up what is already there. This tool finds that data.

Run it after Apply Domain Library, after any bulk import, and before handing a dataset on.

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

Parameters for Validate Against Domains
ឈ្មោះប្រភេទតម្លៃលំនាំដើមការពិពណ៌នា
Input layer(s)Multiple vector layersThe layers to check. Layers that cannot carry domains are skipped with a note.
Report empty values as violationsBooleanFalseOff, a NULL or empty value passes. On, every empty value in a domain-constrained field is listed too.
ViolationsFeature sinktemporary layerThe violations table: one row per bad value.
Violation locationsFeature sink (point), optionalnot createdA point layer of the offending features, so you can zoom to them on the map.
Change reportFile destination (HTML), optionalnot createdThe report as a file.

របៀបប្រើ

  1. Load the layers to check. They must be stored in a GeoPackage or File Geodatabase — nothing else can carry domains.
  2. Open KGA Schema Tools > Validate Against Domains.
  3. Pick the layers under Input layer(s).
  4. Tick Violation locations if you want to zoom to the offending features; this is usually the fastest way to fix them.
  5. Press Run.
  6. Open the Violations table. Each row names the layer, feature, field, value, domain and reason.
  7. Fix the values, then run it again until the count is zero.

លទ្ធផល

លទ្ធផលដែលប្រកាស

Outputs declared for Validate Against Domains
ឈ្មោះប្រភេទការពិពណ៌នា
Number of violationsNumberTotal bad values found across all layers.

អ្វីដែលអ្នកទទួលបាន

  • A Violations table, one row per bad value: layer, feature, field, value, domain and reason.
  • Optionally a Violation locations point layer for map navigation.
  • A report — in the log, and as HTML when asked for — summarising per layer.
  • The Number of violations count in the Processing results panel.

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

  • Only layers stored in a GeoPackage or File Geodatabase can carry domains. Shapefiles, GeoJSON, memory layers and the rest are skipped with a note in the log, not an error — check the note before concluding a layer is clean.
  • A clean run means the values match the domains, nothing more. Fields with no domain attached are not checked at all; use the Domain & Schema Manager to see which fields actually carry one.
  • Nothing is modified. This tool only reports.
  • Empty values pass by default. Tick Report empty values as violations when a blank is as wrong as a bad code — which it usually is for a status field.

មើលផងដែរ

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