GIS data cleanup and QA for network data
- Sheet
- G-08
- Sector
- Geospatial
- Updated
- Nov 20, 2026
What it is
GIS data cleanup finds and fixes the topology, connectivity, attribute, and duplicate errors that break network traces. A GIS analyst or quality assurance (QA) specialist corrects the data in place and retests the traces until they pass.
Typical deliverables
- Error inventory and QA report
- QA rule set with documented exceptions
- Corrected network dataset
- Validation SQL and scripts
- Before and after trace test log
- Feature-level change log
- Exceptions register for field checks
- As-built reconciliation list
Who does it
GIS data analysts and QA specialists
These roles come from a partner firm or as independent professionals in LayerSpec's network, placed as a complete team or embedded in your own.
What to send
- a copy of or read access to the network dataset (geodatabase, GeoPackage, or PostGIS)
- the data model with domains and subtypes
- any topology, attribute, or connectivity rules already in place
- pending as-builts, redlines, and field markups
- the traces that fail today and known problem areas
- reference counts to test against, such as meters per feeder
How it works
-
Scope submission
You send the scope of the project or the gap in your team through the contact form.
-
Scope review
LayerSpec reviews what the work needs: services, scale, location, and timing.
-
Team placement
LayerSpec places a partner firm or independent professionals from its network on the work.
GIS data QA capacity
LayerSpec places GIS data analysts and QA specialists on your project, as a complete team or embedded in your own.
G-08 · Reference
Reference
The reference below covers scope, standards, required inputs, deliverable formats, and common pitfalls for this service.
Contents
GIS (geographic information system) data cleanup finds and fixes the errors in network data that break traces: topology and connectivity faults, invalid geometry, domain mismatches, duplicates, and orphaned records. This page names those error classes and the checks that catch them, on ArcGIS and on QGIS and PostGIS.
Why network traces fail
A utility network feature that breaks a rule gets an error, not a guess. Esri’s documentation on error features says the rule engine flags the feature and marks a dirty area around it. The fix is an edit to geometry, an attribute value, a network rule, or the subnetwork definition. These errors surface when someone enables or validates the network topology, or updates a subnetwork. The network won’t pick a connection on its own.
Esri notes that trace results aren’t guaranteed to be accurate when dirty areas are present, and a trace on a dirty or invalid subnetwork can fail outright. The Trace tool’s Validate Consistency option guards against this. Esri calls it the only setting that guarantees a trace passes through consistent features. It’s unchecked by default, so a trace crosses dirty areas unless someone turns it on.
Analyze Network Data builds an error resolution database without touching the data. Its error types carry numbers: missing rule (8), ambiguous connectivity (9), missing junction (10), stacked points (25), and invalid terminal (36) among them.
A geodatabase without a Utility Network and a PostGIS network without Esri tooling fail for the same reasons: invalid geometry, broken connectivity, and attributes that break the rules.
What the cleanup covers
Cleanup for network data groups the damage into six error classes:
- topology and connectivity errors, where a line doesn’t connect to the junction or device it’s supposed to reach, or a rule like Must Not Have Dangles catches a line end with nothing attached
- invalid geometry, including self-intersecting lines, multipart lines that should be single parts, and geometry that fails an OGC (Open Geospatial Consortium) validity test
- attribute and domain errors, where a value sits outside its coded value or range domain, a common result when data loaded from an outside source skipped validation on the way in
- duplicates and stacked points, where two or more junctions or devices occupy the same x, y, z location, or a feature gets loaded twice under different IDs
- orphaned features and records, where the relationship check finds a related record that points to nothing in the origin table, or a link field left empty
- the as-built backlog, where redlines and field markups haven’t been posted to the GIS, so the map doesn’t match what’s in the ground
Topology and connectivity errors, invalid geometry, and attribute and domain errors fall under logical consistency, one of the data quality elements in ISO 19157-1. The standard’s other elements include completeness, thematic accuracy, temporal quality, positional accuracy, and usability. Duplicates count against completeness, as commission. Features missing because as-builts were never posted count against completeness too, but as omission. Positional doubt, where the record and the field might disagree, needs a field check, not a desk check.
Scope by stage
Error inventory
The first pass runs the available checks without changing anything. On ArcGIS, that’s Analyze Network Data for a Utility Network, or Data Reviewer checks for a geodatabase without one. On QGIS, the Topology Checker and Check Geometries plugins do the same job without touching the source layer. On PostGIS, ST_IsValid and ST_IsValidDetail test validity and report a reason and location for each failure. This pass produces the error inventory and QA (quality assurance) report.
Rule set
The error inventory becomes the QA rule set with documented exceptions: which checks run, what counts as a pass, and which exceptions are legitimate. The analyst documents legitimate exceptions instead of deleting them, so a bulk fix doesn’t erase something intentional.
Correction passes
Corrections follow the rule set, not a hunch. Some are geometry edits: snapping a line end to a transformer, splitting a multipart line, removing a duplicate vertex. Some are attribute edits that move a value back inside its domain. Some are structural, like keeping one meter where stacked points flagged several and logging why. Every edit lands in the feature-level change log, so a utility can reverse one edit without redoing the rest. This pass produces the corrected network dataset.
Trace testing and acceptance
Acceptance runs named traces from known sources, a feeder breaker, a substation, an optical line terminal (OLT) port, a pump station, out to known endpoints. The traces run once before cleanup and once after. The QA specialist compares the counts against an outside record, such as meters per feeder in the billing or customer information system (CIS). This pass produces the before and after trace test log.
Handover
Handover packages the validation SQL and scripts used to find and recheck the errors, plus the exceptions register for field checks, covering anything the records couldn’t resolve. It also includes the as-built reconciliation list, showing what’s posted, pending, or disputed. Producing new as-builts from field work is a separate service, as-built documentation, not part of this cleanup.
Tools on each platform
Geodatabase topology and Analyze Network Data need ArcGIS Pro Standard or Advanced; Data Reviewer checks need a Data Reviewer license. Geodatabase topology rules for lines cover Must Not Have Dangles and Must Not Self-Intersect, among others. Esri’s example for Endpoint Must Be Covered By is a secondary electric line capped by a transformer or a meter. Point rules add Must Be Disjoint and Must Be Coincident With. Attribute rules come in calculation, constraint, and validation types, and all need GlobalIDs. For a geodatabase without a Utility Network, Data Reviewer runs Domain, Duplicate Feature, Relationship, and Check Geometry checks.
QGIS and PostGIS run the same checks without an Esri license. The Topology Checker plugin flags dangles, pseudos, and invalid geometries. Check Geometries finds self-intersections and duplicate nodes within a chosen tolerance. In PostGIS, ST_IsValid and ST_IsValidDetail test and explain validity, though only in 2D. ST_MakeValid rebuilds invalid geometry while aiming to keep every input vertex. pgr_connectedComponents tests whether a network is one connected piece or several islands. In pgRouting, a vertex of degree 1 is a dead end.
To run these checks in SQL, a utility can first move a file geodatabase into PostGIS with ogr2ogr. PostGIS setup covers getting the database ready.
A worked example
Say a small electric co-op’s GIS holds 12,000 service lines. An Endpoint Must Be Covered By rule, set so every service line end meets a transformer or a meter, flags 560 line ends.
A desk review against the as-built sheets finds 505 ends sitting short of their meter, so the analyst snaps them. The last 55 match no record and go on the exceptions register for a field check. 505 plus 55 equals the original 560.
Separately, a Must Be Disjoint rule on the meter layer flags 95 stacked duplicate meters. The analyst keeps one meter per spot and logs which one was deleted and why, in the feature-level change log.
Before cleanup, a trace from one feeder breaker returns fewer meters than the billing system counts on that feeder. After cleanup, the trace test log records the new count against the same breaker, and the 55 open items account for whatever gap remains.
What affects scope
Several factors set how much work a cleanup involves:
- the feature count and the number of layers in scope
- how many rules and exceptions the data model needs
- the size of the unposted as-built backlog
- whether a Utility Network or other network model is already in place
- how much of the exceptions register needs a field check
- the number of acceptance traces the utility wants run
Common pitfalls
Accepting default resolutions
Analyze Network Data’s optional default actions set stacked points to delete all but the first, automatically. That’s fine when the extra points are true duplicates, but not when one of them is a separate device that happens to share a location. A default action can delete it before anyone looks.
Repairing geometry in bulk
ST_MakeValid aims to keep every input vertex, but a single polygon can come back as a multipart feature. A collapsed geometry can come back as a lower dimension than it started. Running it across a whole layer without checking the output doesn’t fix every error; it can turn one into another.
Treating every dangle as an error
A line end with nothing attached isn’t automatically wrong. QGIS’s manual gives the example of an overshoot depicting a dead-end street, and Esri’s dangle rule lets a utility set exceptions for legitimate dead ends. A capped spare cable end is a dead end on purpose.
Fixing without a rerunnable rule set
A one-time manual cleanup fixes today’s errors and nothing else. The data drifts again the moment someone edits it. Without a rule set that can run again, nobody catches the drift until the next trace fails.
Filling gaps with guesses
When a service line end matches no meter and no as-built, guessing at a connection to make a check pass hides the problem instead of fixing it. That record belongs on the exceptions register, flagged for a field check, not filled in with a best guess.
Cleanup, migration, and Utility Network readiness
Cleanup repairs the existing system of record in place. Moving to a new platform is a different job. Migrations fail midstream when the errors a cleanup would have caught surface partway through instead. Converting a geodatabase to a Utility Network is a separate decision again. An ArcGIS to QGIS and PostGIS migration carries the same errors across unless cleanup runs first.
Inputs needed
The GIS analyst scopes the cleanup from these inputs:
- a copy of or read access to the network dataset (geodatabase, GeoPackage, or PostGIS)
- the data model with domains and subtypes
- any topology, attribute, or connectivity rules already in place
- pending as-builts, redlines, and field markups
- the traces that fail today and known problem areas
- reference counts to test against, such as meters per feeder
Frequently asked questions
What does GIS data cleanup include?
GIS data cleanup fixes topology and connectivity errors, invalid geometry, attribute and domain violations, duplicates and stacked points, and orphaned records, and it reconciles the as-built backlog. The work runs as a QA check, a correction pass, and a trace test. That loop repeats until the agreed traces pass and counts match.
Why does a utility network trace return the wrong features?
A trace that crosses a dirty area isn’t guaranteed to be accurate, and a trace on a dirty or invalid subnetwork can fail outright. The Trace tool’s Validate Consistency option catches this, but it’s unchecked by default. A trace returns results through dirty areas unless someone turns that option on.
Can GIS data cleanup run on QGIS and PostGIS instead of ArcGIS?
Yes. The QGIS Topology Checker and Check Geometries plugins find dangles, pseudo nodes, and invalid geometries without an Esri license. In PostGIS, ST_IsValid and ST_IsValidDetail test validity, ST_MakeValid rebuilds invalid geometry while aiming to keep every input vertex, and pgr_connectedComponents checks whether the network is one connected piece or several islands.
Should topology errors be fixed automatically?
Not without review. Analyze Network Data’s optional default actions set stacked points to delete all but the first, which works when the extras are true duplicates. It’s wrong when one of them is a separate device sharing a location, so a desk review should check it first.
What happens to errors the records can’t resolve?
They go on the exceptions register for field checks instead of getting guessed at. A missing asset, a doubtful location, or two as-built sheets that disagree all land there, flagged for a field check or an owner’s decision. The analyst doesn’t invent a connection to make a check pass.
Informational content, not engineering or legal advice. Check current Esri, QGIS, and PostGIS documentation for your software versions.
Who buys this
Electric co-ops, municipal utilities, water and sewer districts, and fiber operators turn to GIS data cleanup when failed traces, a growing as-built backlog, or a planned migration expose errors in the network dataset.