Hardware & Reality-Capture Workflow // P4.2
XGRIDS Lixel L2 Pro (.LAZ) Point Cloud to Layered 3D CAD (.DXF / .GPKG)
Bridge Tier 1 handheld SLAM LiDAR point clouds and RTK trajectories into geodetically registered 3D pipe centerlines, burial-depth profiles, and municipal CAD packages.
XGRIDS Lixel L2 Pro -> LixelStudio .LAS / .LAZ (LAS 1.4, RGB + intensity + GPS time) + trajectory + AprilTag/checkerboard GCPs
Registered COPC viewer cloud + 3D LineStringZ spans + depth_samples -> dxf-ee (.DXF), .GPKG, .GeoJSON, Typst PDF/A-2b
Milestone Separation: M2 Deterministic Export vs. M3–M4 Automated Extraction
- Live Now (M1–M2)
- Deterministic geodesy (L-EST97 <= 2.0 mm horizontal), DXF group-code writer (dxf-ee), GeoPackage (.gpkg), GeoJSON, and Typst PDF/A-2b closeout ZIP generation are LIVE in M1–M2.
- Documented Waivers
- Licensed EST-GEOID2017 vertical grid (WAIVER: ee-geoid) and municipal DXF layer samples (WAIVER: ee-authority, provisional ASB_* layers) are pending external inputs; PDAL 2.8 packaging on Debian 13 and pilot L2 Pro + total-station validation profiles are M4 open items.
- Roadmap Scope (M3–M6)
- Automated 10-stage crates/spatial-vector processing (PDAL crop, AprilTag GCP detection, Kabsch/drift spline registration, 0.20 m cross-sections, RANSAC pipe circle fitting, cover calculation) is strictly [Roadmap: M3–M4].
Tier 1 Lixel L2 Pro Input Contract & Field Anchor Protocol
Under docs/03-scan-to-vector.md, XGRIDS Lixel L2 Pro point clouds exported from LixelStudio as LAS 1.4 (.LAS/.LAZ with RGB, intensity, and per-point GPS time) serve as the primary Tier 1 reality-capture source for legally binding utility corridors.
Raw point clouds without coordinate metadata or physical control are rejected cleanly with reject_reason — every scan must either carry a valid CRS WKT VLR or be registered against at least 2 surveyed ground control points (GCPs). Control targets are split strictly into CONTROL targets (entering registration) and withheld CHECK targets (never entering the adjustment, used solely to compute independent acceptance RMSE).
- Place physical AprilTag or checkerboard targets along the open trench corridor and survey both CONTROL and independent CHECK targets using RTK_FIXED, PPK_FIXED, or TOTAL_STATION.
- Verify LAS 1.4 scale <= 0.001 m and GPS time channel integrity; GPS timestamps tie points directly to corridor trajectory chainage s(t) for linear SLAM drift removal.
- Maintain <= 50 mm horizontal and <= 25 mm vertical CHECK-target RMSE budget (half of MKM Regulation No. 34 10 cm / 5 cm statutory limits) to remain eligible for QL-A.
Eliminating SLAM Corridor Drift & Extracting Pipe Centerlines [Roadmap: M4]
Long, narrow utility trenches exhibit unobservable roll about the corridor axis when targets are collinear. Stage 5 distinguishes non-collinear networks (>= 3 targets with > 2 m lateral spread -> 6-parameter rigid Kabsch SVD, GCP_RIGID) from linear trenches (GCP_TRAJECTORY_DRIFT: piecewise-linear translation drift field delta(s) along trajectory chainage s, with constant extrapolation capped at <= 10 m beyond end targets).
In Stage 7, the voxelized 5 mm cloud is sliced every 0.20 m (slab +-0.05 m) in local frame (t along axis, u lateral, z up). Trench edges u_L and u_R are identified from > 0.15 m vertical drops, adjacent street/terrain grade g(u) is fit via least median of squares, and buried conduits are extracted via RANSAC circle fitting constrained to nominal diameter r_nom +- 15% (or top envelope for < 20 mm micro-ducts).
Crucially, runs of NO_DETECTION > 1.0 m are never interpolated as verified geometry: they emit explicit unverified intervals that exclude QL-A, and QL-A requires verified span coverage >= 95%.
10-Stage Scan-to-Vector Pipeline (docs/03-scan-to-vector.md §3.2)
| Stage | Operation & Kernel | Quantitative Rule / Acceptance Gate | Milestone Status |
|---|---|---|---|
| 1. Ingest | Stream R2 object, SHA-256 check, las crate header check | Matches claimed sha256; LAS scale <= 0.001 m; GPS time present | [Roadmap: M3–M4] |
| 2. CRS Normalise | PDAL filters.projpipeline (pinned string) | Matches project SRID (3301 + EH2000) or ETRS89 -> pinned PROJ | [Roadmap: M3–M4] |
| 3. Corridor Crop | PDAL filters.crop along trajectory or redline buffer | 2.5 m corridor buffer cuts 80–95% background points | [Roadmap: M3–M4] |
| 4. GCP Detection | 2 mm/px top-down ortho + apriltag C lib + RANSAC plane Z | 1 x 1 m local search around surveyed CONTROL/CHECK coordinates | [Roadmap: M3–M4] |
| 5. Registration | Kabsch SVD (GCP_RIGID) or GCP_TRAJECTORY_DRIFT delta(s) | Withheld CHECK RMSE <= 50 mm H / 25 mm V (EE default); >= 1 CHECK for QL-A | [Roadmap: M3–M4] |
| 6. Derivatives | 5 mm working voxel + PDAL writers.copc | Full-resolution COPC streamed via HTTP 206 range requests | [Roadmap: M3–M4] |
| 7. Cross-Sections | 0.20 m spacing (+-0.05 m slab), RANSAC pipe circle fit | r_nom +- 15%, inliers >= 60%, residual sigma <= 8 mm; else NO_DETECTION | [Roadmap: M3–M4] |
| 8. Centerline | Rolling 2 m 3*MAD outlier rejection + 3D Douglas-Peucker 10 mm | NO_DETECTION > 1.0 m flagged unverified (never interpolated as QL-A) | [Roadmap: M3–M4] |
| 9. Burial Depth | cover(s) = g(u_c(s)) - top_z(s) + sigma_cover propagation | Verified length / span length >= 95% for QL-A; conservative cover - 2*sigma option | [Roadmap: M3–M4] |
| 10. Package Export | crates/cad-exporter (dxf-ee, gpkg, geojson, Typst PDF/A-2b) | Byte-identical repeat exports + manifest_sha256 closeout ZIP | M1–M2 Live |
Workflow: Preparing Lixel L2 Pro Data & Auditing CAD Outputs
- Verify control coordinates in L-EST97
Convert and check CONTROL and withheld CHECK target coordinates between ETRS89/WGS84 and L-EST97 (EPSG:3301) using /tools/lest97-eh2000-converter.
- Capture open trench with LAS 1.4 & GPS time
Export .LAS/.LAZ and trajectory from LixelStudio before backfilling so Stages 1–9 [Roadmap: M4] have full point timestamps and GCP visibility.
- Audit generated .DXF layers & bounds locally
Drop exported .DXF drawings into /tools/dxf-layer-auditor to verify $INSUNITS=6, L-EST97 bounds, 3D polylines, and provisional ASB_* or custom municipal layers.
Scan-to-Vector Engineering Terms
- GCP_TRAJECTORY_DRIFT Registration
- When trench targets are collinear, rotation about the corridor axis is unobservable from GCPs alone; asbuilt preserves RTK/IMU roll and fits a piecewise-linear translation field delta(s) keyed by GPS time.
- Unverified Interval (NO_DETECTION > 1.0 m)
- Occluded trench runs longer than 1.0 m where pipe circle fitting fails are recorded as explicit unverified findings and excluded from QL-A rather than bridged by blind interpolation.
- M4 Foundation Check Target
- Synthetic trench pipeline assertions require CHECK RMSE_h <= 5 mm, RMSE_v <= 5 mm, centerline/cover error <= 10 mm, and real L2 Pro scans within RMS |delta z| <= 20 mm against an independent total station.
Download Sanitized 15 m Open-Trench Sample Pack (/samples/ee-trench-15m/)
manifest.sha256Verify the deterministic LAS 1.4 point-cloud corridor fixture alongside exported dxf-ee, OGC GeoPackage, GeoJSON, and Typst PDF/A-2b artifacts.
Synthetic L-EST97 corridor fixture only. Licensed EST-GEOID2017 (.tif) is omitted (WAIVER: ee-geoid); DXF carries provisional ASB_* layers (WAIVER: ee-authority).
| File | Format | Size | SHA-256 |
|---|---|---|---|
| ee-trench-15m.laz | LAS 1.4 Compressed (.LAZ, EPSG:3301) | 1.5 KB | 33515c0c6c141f03… |
| ee-demo.dxf | AutoCAD ASCII AC1032 (.DXF, Provisional ASB_*) | 59 KB | 753e4f15ab92e868… |
| ee-demo.gpkg | OGC GeoPackage (.GPKG, nodes + spans) | 76 KB | 033f2c9af16f0456… |
| ee-demo.geojson | GeoJSON (EPSG:3301) | 16 KB | b900d845c5c827dc… |
| ee-demo-closeout.pdf | Typst PDF/A-2b Closeout Book | 148 KB | 997bf5d96bd1314c… |
| ee-trench-15m-pack.zip | Complete Bundle Archive (.ZIP) | 77 KB | 6a59fe98eb9e5185… |