Skip to content

MBI Validator

The MBI Validator (Map Boundary Issues Validator) cross-checks a single combined Reference MBI layer (containing both Gap and Overlap cases, distinguished by mbi_type) against separate Checker GAP and OVERLAP polygon layers to audit status mismatches, new unrecorded boundary issues, confirmed resolved cases, and output consolidated GeoPackage reports.

Access

  • Processing Toolbox: GMD Pipeline → 1Map → MBI Validator
  • Algorithm ID: gmd_pipeline:mbi_validator

When to Use

Use this tool when you need to:

  • Audit and cross-verify Map Boundary Issues (MBI) status reports submitted by LGUs or processing teams.
  • Detect status discrepancies where a case is marked 1_Updated (resolved) but still physically detected by the topological checker.
  • Identify 2_Pending cases that lack justification remarks or have zero intersecting building points.
  • Isolate new boundary gaps or overlaps that were not previously present in the Reference dataset.
  • Confirm and catalog boundary cases that have been successfully resolved.
  • Export all audit findings into a single, timestamped GeoPackage dataset (ref_mbi_reviewed-YYYY-MM-DD_HH-MM-SS.gpkg).

Parameters

Inputs

ParameterTypeDescription
Reference layerFeature Source (Polygon)The combined Reference MBI polygon layer containing baseline cases, mbi_status, pso_remarks, mbi_type, and num_bldg_pts. Required. Automatically pre-selects matching ref_mbi_cases layer loaded in active QGIS project.
Checker GAP layerFeature Source (Polygon)Topological checker output layer containing detected boundary gaps. Optional. Automatically pre-selects matching Gaps layer loaded in active QGIS project.
Checker OVERLAP layerFeature Source (Polygon)Topological checker output layer containing detected boundary overlaps. Optional. Automatically pre-selects matching Overlaps layer loaded in active QGIS project.
Save outputs as GeoPackageBooleanOption to consolidate non-empty audit result categories into a single GeoPackage file. Default is False.
Save PathFolder DirectoryDestination folder where the GeoPackage will be saved. Optional unless Save outputs as GeoPackage is checked. The filename is automatically generated as ref_mbi_reviewed-YYYY-MM-DD_HH-MM-SS.gpkg.
Layers to include in GeoPackageEnum (Multiple)Multi-select choice of which audit result layers/categories to write into the GeoPackage. All categories are selected by default.

Outputs

Outputs are generated conditionally and will only create output layers when at least one matching feature is found:

OutputTypeDescription
Status MismatchFeature Sink (Polygon)Cases where reported status conflicts with spatial evidence or attribute rules (e.g. marked resolved but still detected, Pending w/ 0 building points and no remarks, or Updated w/ nonzero building points and no remarks).
Mismatch with RemarksFeature Sink (Polygon)Reference cases marked 1_Updated with non-zero building points where remarks are present (review justification).
Pending CasesFeature Sink (Polygon)All 2_Pending reference cases, except Pending with 0 building points and no remarks (which routes to Status Mismatch).
New CasesFeature Sink (Polygon)Checker cases that do not genuinely overlap any existing reference case in the baseline.
Remaining CasesFeature Sink (Polygon)Baseline reference cases actively detected by the checker that remain open (non-Pending, non-Updated).
Confirmed ResolvedFeature Sink (Polygon)Reference cases marked 1_Updated with 0 building points that are no longer detected by topological checkers.
Manual ReviewFeature Sink (Polygon)Ambiguous cases where a single checker polygon overlaps multiple reference polygons.
No StatusFeature Sink (Polygon)Reference boundary cases where the mbi_status field is blank or NULL.
Disputed AreasFeature Sink (Polygon)Reference boundary cases marked with mbi_type as Disputed (e.g. 3_Disputed).
GeoPackage FileFile (GeoPackage)Timestamped .gpkg file containing each non-empty result category as an individual layer table.

How It Works

  1. Layer Auto-Detection:

    • When the tool dialog opens, the algorithm scans loaded layers in QgsProject.instance() for valid polygon vector layers matching ref_mbi_cases, Gaps, or Overlaps in their layer names and pre-populates parameter dropdowns automatically.
  2. Genuine Area Overlap Linking:

    • Checker polygons are matched against Reference features using spatial index intersection (QgsSpatialIndex).
    • Boundary-touching features (sharing only edges or vertices without interior area overlap) are excluded from matching to prevent brand-new adjacent boundary cases from inheriting old reference statuses.
  3. Status Audit & Rule Evaluation:

    • Status Mismatch: Cases reported as 1_Updated (resolved) that are still physically detected, 2_Pending cases with 0 building points and empty remarks, or 1_Updated cases with remaining building points and empty remarks.
    • Mismatch with Remarks: Cases marked 1_Updated with remaining building points and non-empty justification remarks.
    • Pending Cases: Reference cases marked 2_Pending (with building points or remarks), providing a dedicated layer for all open pending boundary issues.
    • Remaining Cases: Cases in the reference layer confirmed detected by the checker that remain legitimately open for other non-Pending status codes.
    • Confirmed Resolved: Reference cases marked 1_Updated with zero building points that no longer spatially intersect any active checker polygon.
    • New Cases: Active checker polygons that have zero interior area overlap against reference cases.
    • Disputed Areas: Reference layer boundary cases flagged as 3_Disputed extracted directly for administrative tracking.
  4. Timestamped GeoPackage Consolidation:

    • If enabled (by checking Save outputs as GeoPackage), selected non-empty result categories are automatically saved into a single .gpkg file formatted as ref_mbi_reviewed-YYYY-MM-DD_HH-MM-SS.gpkg. A Save Path destination folder is required only when this option is checked; if unchecked, the algorithm runs without requiring an output folder.

Classification Rules

  1. Status Mismatch (STATUS_MISMATCH):

    • Case marked 1_Updated but spatially detected by the Checker layer.
    • Case marked 2_Pending with 0 building points (num_bldg_pts = 0) and no substantive justification remarks.
    • Case marked 1_Updated with non-zero building points (num_bldg_pts > 0) and no substantive justification remarks.
  2. Mismatch with Remarks (MISMATCH_WITH_REMARKS):

    • Case marked 1_Updated with non-zero building points (num_bldg_pts > 0) and containing non-empty justification remarks.
  3. Pending Cases (PENDING_CASES):

    • All cases marked 2_Pending (with remarks or with building points > 0).
  4. New Cases (NEW_CASE):

    • Detected by Checker GAP or OVERLAP layers with zero area overlap against the Reference dataset (merely touching polygon boundaries does not count as a match).
  5. Remaining Cases (REMAINING_CASE):

    • Reference cases detected by the Checker layer that remain open (non-Pending, non-Updated).
  6. Confirmed Resolved (CONFIRMED_RESOLVED):

    • Reference cases marked 1_Updated with zero building points that no longer overlap any Checker polygons.
  7. Manual Review (MANUAL_REVIEW):

    • Checker polygons that spatially overlap two or more distinct Reference cases.
  8. No Status (NO_STATUS):

    • Reference boundary cases where the mbi_status field is empty or NULL.
  9. Disputed Areas (DISPUTED_AREAS):

    • Reference layer boundary cases where mbi_type matches 3_Disputed (or contains disputed).

Output Fields

Field NameTypeDescription
case_uuidString (100)Unique identifier of the boundary case
geocodeString (50)Standard 9/10-digit PSGC geographic code
regionString (100)Region name
provinceString (100)Province name
city_munString (100)City or Municipality name
barangayString (100)Barangay name
mbi_typeString (50)Type of boundary case (Gap, Overlap, or Disputed / 1_Gap, 2_Overlap, 3_Disputed)
ref_statusString (60)Original status reported in Reference layer
ref_remarksString (255)Original remarks from Reference layer
ref_involved_bgysString (255)Involved barangays listed in Reference layer
ref_num_bldg_ptsIntegerCount of building points inside reference polygon
remarksString (255)Automated audit finding explanation

Supported Geometry Types

  • Polygon and MultiPolygon

TIP

If only one type of issue is being audited (e.g. Gaps only or Overlaps only), leave the unused Checker parameter empty. The validator will automatically audit the provided layer while cataloging reference cases for the remaining type.

Developed by the Geospatial Management Division