ZMPTYWorkPermitting
Road jurisdiction scrubber
Checks the owner and spelling of every road on a fiber permit drawing against county and state GIS. 41 job workbooks so far; 1 to 2 hours saved per drawing set.
The problem
Every road a fiber route touches has to be tied to the authority that controls it: the state DOT, a county, a city or a private owner. Drawings state that jurisdiction, but they are sometimes wrong or misspell the road, and checking dozens of roads one by one in public GIS viewers is slow. A wrong owner means a missed permit or the wrong application.
What it does
- Reads the drawing: in one command, extracts every road carrying new fiber, the sheets it’s on, and the jurisdiction the drawing’s overview sheet assigns it.
- Checks the owner: queries the official county or state GIS road layer for each road and color-codes the result (OK, mismatch, multiple jurisdictions, undeclared jurisdiction, not found and more).
- Trips on surprises: flags any authority the GIS names that wasn’t on the declared list, a permit nobody planned for.
- Checks spelling: every road the GIS spells differently is listed with exactly which letters differ and a link to the source record. It reports; it never corrects the drawing.
- One workbook per job: roads with fiber, roads by jurisdiction, needs review (worst first), spelling check and a summary.
How it’s built
- About 22,900 lines of Python across 94 modules, including a road-label reader that handles text set at any angle along a road.
- A registry of 7 county and state GIS road services, with their fields and coded values read straight from each service, so meanings are never guessed.
- Cautious by design: green means only “not contradicted” by GIS, and a road missing from GIS is never treated as private.
- Regression tests fingerprint every output tab, row count and flag color, and a mutation script proves each reader rule has a test that fails when the rule breaks. If a workbook can’t verify itself, it gets a red failure tab, so an incomplete result never looks finished.
Result
- 41 drawing-to-jurisdiction workbooks and 12 road-list scrubs, plus 27 KMZ files and 8 map packages.
- About 1 to 2 hours saved per drawing set: 30 to 60 roads no longer looked up by hand. The pipeline reads a 30-sheet set in 10 to 25 seconds.
The parts
Design map reader and report splitter
A working prototype that reads a fiber network’s high-level design map (KMZ) and names the roads under each serving area from OpenStreetMap. It detects creek and rail crossings, then splits the build-wide jurisdiction report into one workbook per area. Each workbook has an evidence sheet for every kept or removed authority. On its reference build it measured 46.9 miles of route across 13 serving areas and named 152 roads, matching all but 4.6% of footage. A 116-check offline self-test covers it.


