Skip to content

Getting Started

What is GEMMA?

GEMMA stands for GIS Extension for Map Management and Analysis. It is a QGIS processing plugin developed by the Geospatial Management Division (GMD) of the Philippine Statistics Authority (PSA).

The plugin provides a comprehensive suite of GIS tools for official boundary management, topology checking, geometry repair, PSGC metadata standardization, enumeration area delineation, and mobile field data collection packaging.

Requirements

RequirementMinimum VersionRecommended Version
QGIS3.0 or laterQGIS 3.40 LTR
Python3.x (bundled with QGIS)Python 3.9+
OSWindows, macOS, or LinuxWindows 10/11

Installation

Installing via custom repository allows QGIS to automatically detect and notify you of plugin updates:

  1. Open QGIS.
  2. Go to Plugins → Manage and Install Plugins.
  3. Select the Settings tab.
  4. Click Add… to add a repository.
  5. Set Name to GEMMA Repository and URL to:
    https://gemma-plugin.vercel.app/gemma.xml
  6. Click OK, then click Reload All Repositories.
  7. Go to the All tab, search for GEMMA, and click Install Plugin.

Method 2: Install from ZIP

  1. Download the latest release from the GitHub Releases page.
  2. Open QGIS.
  3. Go to Plugins → Manage and Install Plugins.
  4. Select the Install from ZIP tab.
  5. Click Browse and select the downloaded gemma-plugin-v*.zip file.
  6. Click Install Plugin.

User Interface & Menu Overview

After installation, GEMMA tools can be accessed through three interfaces in QGIS: the Gemma Menu, the Gemma Toolbar, and the Processing Toolbox.

Gemma Menu Bar

The Gemma menu is added to the top menu bar in QGIS, structured into logical submenus:

SubmenuAction / ToolShortcutDescription
Updating of BoundariesCheck and Update3-Phase dialog for georeferencing navigation, error scanning/repair, and PSGC metadata updating
Updating of BoundariesPSA - LGU Comparison ReviewOpens the comparison dock panel to review matched PSA and LGU boundary layers side-by-side
Updating of BoundariesKnow Your Projection!Coordinate diagnosis, Philippine CRS auto-detection, and 2D affine georeferencing
Updating of BoundariesPackage Style LoaderInteractive dialog to organize layer hierarchies and apply QML symbology and labeling
EA DelineationEA Delineation and MergingLauncher dialog for pre-processing, gap filling, delineation, and merging of enumeration areas
EA DelineationPackage for QFieldCtrl+Alt+QOffline project packaging dialog for field data collection with QField
OthersGeometry Repair ToolkitStandalone dialog for scanning, canvas highlighting, and in-place polygon geometry repairs
OthersPackage Layers by City/MunSplit reference layers into municipal GeoPackages placed in individual city/mun folders

Gemma Toolbar

The Gemma Toolbar provides immediate one-click access to core interactive dialog workflows:

IconToolAccessDescription
Check and UpdateToolbar ButtonOpen the 3-Phase boundary management dialog
EA Delineation and MergingToolbar ButtonOpen the Enumeration Area delineation launcher
Package for QFieldToolbar ButtonPackage layers for mobile field data collection (Ctrl+Alt+Q)

Processing Toolbox — GMD Pipeline

All batch processing algorithms are integrated into the QGIS Processing framework under the GMD Pipeline provider:

  1. Open the Processing Toolbox by clicking Processing → Toolbox or pressing Ctrl+Alt+T.
  2. Expand the GMD Pipeline provider tree to access individual processing algorithms.

Tool Directory

GEMMA tools are organized into three primary functional suites matching the documentation guides:

1Map Tools

Tools designed for LGU boundary management, 1Map data harmonization, topology auditing, and official PSGC metadata standardization:

ToolAccessDescription
MBI CheckerProcessing ToolboxDetect gaps and overlaps between barangay polygon boundaries with building point validation and reference case exclusion
MBI ValidatorProcessing ToolboxCross-check Reference MBI layers against Checker GAP/OVERLAP layers to audit status mismatches
Run AnalysisProcessing ToolboxPerform boundary discrepancy detection across polygon layers and building points, generating reference MBI case layers
Fill Polygon GapsProcessing ToolboxAutomatically fill gaps between polygons and assign them to neighboring barangays
Export Preliminary PolygonsProcessing ToolboxMerge and export resolved boundary layers into consolidated GeoPackages for 1Map submission
Update MetadataProcessing ToolboxStandardize LGU boundary layers with PSGC geocodes, cascading administrative filters, and GPKG export
Update Metadata (by Geocode)Processing ToolboxPerform direct PSGC left-join on LGU boundary layers using geocodes, auto-populating 15-attribute schemas
Fix LGU CRS / GeometryProcessing ToolboxBatch-correct local arbitrary grid coordinates (~0 to ~100,000) to standard WGS 84 (EPSG:4326)
Join Barangay AttributesProcessing ToolboxMatch vector attributes with official PSGC tables via fuzzy matching and Roman numeral normalization
Check and UpdateMenu & ToolbarInteractive 3-Phase dialog workflow for georeferencing, geometry error scanning/repair, and metadata updating
PSA - LGU Boundary ComparisonProcessing ToolboxAudit PSA reference boundaries against LGU-submitted polygons using geocodes, alignment models, and building point validation
Know Your Projection!Menu & Processing ToolboxDiagnose CRS, auto-detect Philippine candidates, and georeference local CAD grids
Package Layers by City/MunMenu & Processing ToolboxSplit reference layers into municipal GeoPackages placed in individual city/mun folders
Package Style LoaderGemma MenuInteractive dialog to organize layer hierarchies and apply QML symbology and labeling

Geometry & Repair

Tools for validating, diagnosing, and repairing vector polygon geometry defects:

ToolAccessDescription
Geometry Repair ToolkitGemma → OthersStandalone interactive dialog to scan, highlight on map canvas, and repair invalid geometries in-place
Scan Geometry ErrorsProcessing ToolboxScan vector polygon layers for specific geometry and topology defects and generate a Point Error Layer
Repair Polygon GeometriesProcessing ToolboxReconstruct invalid polygon geometries and recover missing shapes into a clean vector output layer
Clip Project Layers by ExtentProcessing ToolboxBatch clip multiple vector layers to a target administrative polygon boundary with optional buffer

QField & Enumeration

Tools for field data collection packaging and census Enumeration Area delineation:

ToolAccessDescription
Package for QFieldMenu & Toolbar (Ctrl+Alt+Q)Package QGIS project layers for mobile offline field data collection with QField
EA Delineation and MergingMenu & ToolbarUnified module for pre-processing, gap filling, delineation (splitting), and merging of Enumeration Area boundaries

Updating the Plugin

  • Repository Install: QGIS automatically checks for updates on launch. Navigate to Plugins → Manage and Install Plugins → Upgrade All.
  • ZIP Install: Download the latest ZIP and re-install via Install from ZIP to overwrite the previous version.

Changelog

For version history and detailed release notes, check our dedicated Changelog Page or visit GitHub Releases.

Support

For bug reports and feature requests, please use the GitHub Issues page.

For direct support, contact the GMD team at gmd.support@psa.gov.ph.

Developed by the Geospatial Management Division