A published QGIS plugin for digitising, archiving, and managing Nigerian land survey records β with AutoCAD DXF import, AI-powered metadata extraction, PostGIS spatial storage, traverse calculations, and three-tier access control.
The Survey Management System is a full-featured QGIS plugin built specifically for Nigerian surveyors and cadastral offices to replace paper-based filing systems with a robust, spatially-aware digital archive. It connects QGIS directly to a PostgreSQL/PostGIS database, enabling surveyors to store, retrieve, visualise, and verify land survey records β with 50-year archival durability and full audit trails.
Now in version 1.2.0, the plugin adds AutoCAD DXF/DWG import with AI-powered plan metadata extraction, making it possible to onboard legacy paper plans at scale.
Land survey records in Nigeria are overwhelmingly paper-based. Files deteriorate, get lost, or become impossible to search across thousands of records. There is no standard digital system for linking survey plans to spatial geometries, LGA boundaries, or adjoining plots. This plugin provides a complete, open-source solution built on tools surveyors already use β QGIS and PostgreSQL.
- π AutoCAD DXF/DWG Import β extract beacon coordinates, traverse legs, bearings, and distances directly from AutoCAD plan files
- π AI-Powered Metadata Extraction β automatically reads plan number, owner name, surveyor, LGA, state, and survey date from DXF files via a hosted inference server (no API key needed)
- π DXF Import Preview Dialog β review and confirm all extracted data before committing to the database
- π First-Run Setup Wizard β installs
psycopg2and creates the database automatically; no command line required - π User Login & Three-Tier Access Control β superuser, surveyor, and viewer roles
- π Full Audit Trail β every action logged to
audit_logwith timestamp and user - π User Administration Panel β manage users and roles from within the plugin
- π Traverse Precision Ratio β automatic 1:5000 closing error check per Nigerian Survey Regulations
- π Adjoining Survey Detection β PostGIS
ST_DWithinflags neighbouring plots automatically - π Live EPSG Validation β custom CRS input with real-time validation
- π Fixed traverse delete button index bug
- π Fixed Documents tab index using
indexOf()
- Enter survey points by direct Easting/Northing or via Bearing & Distance traverse
- Support for Whole Circle Bearings (WCB) β the Nigerian surveying standard
- Quadrant bearings (N45Β°30'E format) and DMS text shortcuts (
45d30m15s) - Real-time traverse coordinate calculation and closing error computation
- Automatic 1:5000 precision ratio check per Nigerian Survey Regulations
- Plot traverses directly on the QGIS map canvas
- Import
.dxfand.dwgplan files from AutoCAD or compatible CAD software - AI automatically extracts plan number, owner name, surveyor, LGA, state, and survey date
- Preview dialog to review, edit, and confirm before database insertion
- Eliminates manual data entry for legacy plan digitisation workflows
- Automatic database creation and schema initialisation (8 tables)
- All geometries stored with SRID preservation via
geoalchemy2 ST_DWithinadjoining survey boundary detectionST_AsGeoJSONandST_Transformfor seamless QGIS layer loading- Export search results to CSV
- Basic Search β find records across all fields (plan number, owner, LGA, state, date range)
- Advanced Search β multiple simultaneous criteria with sorting
- Global Search β search across all database tables at once
- Quick filters: Recent surveys, no documents, Lagos State, FCT Abuja
- Attach PDFs, scanned images, and any file type to survey records
- MD5 checksum verification β detect file corruption or tampering
- Primary document flag per survey
- Last-verified date tracking and bulk verification
- Three roles: Superuser, Surveyor, Viewer
- Full audit log of every insert, update, and delete action with timestamps
- User administration panel for superusers
- Default credentials:
admin/admin123(change on first login)
- CRS Presets built in:
- EPSG:26331 β Minna / Nigeria West
- EPSG:26332 β Minna / Nigeria Mid Belt (default for most of Nigeria)
- EPSG:26333 β Minna / Nigeria East
- EPSG:4326 β WGS 84 (GPS)
- EPSG:32631 / 32632 β UTM Zone 31N / 32N
- All 36 Nigerian states + FCT in dropdown
- Local Government Area (LGA) field on every record
- Designed around NIS (Nigerian Institution of Surveyors) workflow standards
| Software | Minimum Version | Purpose |
|---|---|---|
| QGIS | 3.28 | GIS platform |
| PostgreSQL | 12 | Spatial database |
| PostGIS | 3.0 | Geometry storage & queries |
- Open QGIS
- Go to Plugins β Manage and Install Plugins
- Search for
Survey Management System - Click Install Plugin
- The ποΈ icon will appear in your QGIS toolbar
- Download the latest ZIP from GitHub Releases
- In QGIS: Plugins β Manage and Install Plugins β Install from ZIP
- Select the downloaded file and click Install Plugin
On first launch the Setup Wizard will:
- Automatically install
psycopg2if missing (no terminal needed) - Prompt for PostgreSQL connection details
- Create the
survey_managementdatabase - Enable the PostGIS extension
- Create all required spatial tables
- Encrypt and save your connection credentials
Default login: username
admin, passwordadmin123β change this immediately via the User Administration panel.
- Click the ποΈ plugin icon in the QGIS toolbar
- Log in with your credentials
- Open the Survey Metadata tab
- Enter Plan Number and Owner Name (required fields)
- Select State, LGA, and Survey Date
- Click Save New Survey
- Go to the DXF Import tab
- Click Browse and select your
.dxfor.dwgfile - The AI engine extracts plan metadata automatically
- Review the Import Preview dialog β edit any fields as needed
- Click Confirm Import β coordinates, traverse legs, and metadata are saved
- Go to the Bearing/Distance tab
- Enter the starting point coordinates (Easting, Northing)
- Select bearing format: Spin boxes, Text shortcuts, or Decimal degrees
- Enter each leg: bearing (e.g.
45d30m15s) and distance in metres - Click Add Leg after each entry
- Click Calculate β the 1:5000 precision ratio is checked automatically
- Click Plot on Map to verify, then Save to Database
- Basic: Enter any text β click Search
- Advanced: Use multi-field queries with date ranges
- Global: Search across surveys, points, documents, and traverses simultaneously
- Double-click any result to load the full record
The plugin creates and manages the following tables in the survey_management database:
| Table | Contents |
|---|---|
surveys |
Plan numbers, owner names, surveyors, LGA, state, survey dates |
survey_points |
Individual beacon coordinates with PostGIS geometry |
survey_boundaries |
Polygon boundaries with calculated area (shoelace formula) |
survey_documents |
File paths, MD5 checksums, primary document flags |
survey_traverses |
Traverse records with precision ratio and closing error |
traverse_legs |
Individual legs with bearings, distances, and geometry |
audit_log |
Full action audit trail with timestamps and user IDs |
users |
User accounts with hashed passwords and role assignments |
| Region | EPSG | Name |
|---|---|---|
| Nationwide (default) | 26332 | Minna / Nigeria Mid Belt |
| Western Nigeria | 26331 | Minna / Nigeria West |
| Eastern Nigeria | 26333 | Minna / Nigeria East |
| GPS / GIS general | 4326 | WGS 84 |
| UTM Zone 31N | 32631 | WGS 84 / UTM zone 31N |
| UTM Zone 32N | 32632 | WGS 84 / UTM zone 32N |
| You Type | Parsed As |
|---|---|
45d30m15s |
45Β°30'15" |
45Β°30'15" |
45Β°30'15" |
45.5042 |
45.5042Β° decimal |
N45d30mE |
North 45Β°30' East (quadrant) |
S30d15mW |
South 30Β°15' West (quadrant) |
Precision standard: 1:5000 closing error ratio per Nigerian Survey Regulations (NIS).
| Problem | Fix |
|---|---|
psycopg2 not installed |
Run the Setup Wizard β it installs this automatically. Or: python -m pip install psycopg2-binary in OSGeo4W Shell |
| Cannot connect to database | Confirm PostgreSQL is running; verify host, port, username, and password |
| Permission denied creating database | Use the postgres superuser, or grant CREATEDB to your user |
| PostGIS not available | Windows: install via Stack Builder. Linux: sudo apt install postgis |
| Nothing plots on map | Check CRS matches your data; right-click layer β Zoom to Layer |
| Bearing parse error | Use format 45d30m15s or decimal degrees |
| DXF import finds no data | Ensure the file uses standard AutoCAD layer names; contact support for non-standard plans |
For detailed errors, open the QGIS Python Console (Plugins β Python Console).
- π Full User Manual (Google Docs)
- π¬ Video Walkthrough on YouTube
- π Report a Bug on GitHub
- π QGIS Plugin Repository Listing
Contributions are welcome from the QGIS community and Nigerian GIS practitioners:
- Report bugs β open a GitHub Issue
- Request features β describe your surveying workflow requirement
- Translate β add Hausa, Yoruba, or Igbo UI translations
- Improve DXF parsing β extend support for more CAD plan formats
- Port to other countries β Ghana, Kenya, and other nations using WCB traverse standards
# Development setup
git clone https://github.com/Sochukwumaobim/surveymanagement.git
pip install qgis-plugin-ci
qgis-plugin-ci package # Build the plugin zip
# Load in QGIS using Plugin Reloader for live developmentReleased under the GNU General Public License v2 or later (GPL-2.0+) β free software you may use, modify, and redistribute. See LICENSE for full terms.
- Nigerian Institution of Surveyors (NIS) for workflow and standards guidance
- The QGIS community for an outstanding open-source GIS platform
- PostgreSQL and PostGIS teams
- Datamat Nigeria Limited
- All field surveyors who provided feedback during testing
| Channel | Details |
|---|---|
| ugwusochukwuma@gmail.com | |
| GitHub Issues | github.com/Sochukwumaobim/surveymanagement/issues |
| QGIS Repository | plugins.qgis.org/plugins/surveymanagement |
| Author | ASTROMAT GEO-SERVICES |
"Preserving Nigeria's surveying heritage, one coordinate at a time." π³π¬
Keywords: QGIS plugin Nigeria, Nigerian cadastral survey management, land survey digitisation Nigeria, PostGIS survey records, QGIS Nigeria cadastral, survey plan archive Nigeria, bearing traverse calculator QGIS, Minna coordinate system EPSG 26332, Nigerian land registry GIS, AutoCAD DXF QGIS import, land administration Nigeria open source, survey management system Africa