Point Clouds with ReCap, Civil 3D and GIS

Point Clouds with ReCap, Civil 3D and GIS

The first time a laser scan convinced me, it was by embarrassing me. A utility had asked for as-built drawings of a pumping station, and the original design drawings had been “verified” by site inspection: a pair of engineers with tape measures and clipboards, two days on site. A scanning crew then spent four hours there with a terrestrial laser scanner, and delivered a point cloud of about 600 million points. I loaded it next to the as-built drawings and flew through the building. The pipework in the main hall was 40 centimeters away from where the drawings said it was. A valve chamber that the drawings showed as accessible had a beam across its entrance. And two pipes were drawn as crossing, when in reality one ran over the other with 8 centimeters to spare, a fact that would have been discovered with a very large wrench. The drawings had not been careless. They had simply been a description of the plant, and the point cloud was a measurement of it.

That distinction is the reason point clouds have moved from a specialist curiosity to a standard input of design and GIS work. A point cloud is a set of millions or billions of points, each with a position in three dimensions and often a color, an intensity and a classification, captured by laser scanners, photogrammetry or mobile mapping. It’s the most direct form of “reality capture”: a dense, three-dimensional record of what is there. In the Autodesk world, ReCap is the application used to register, clean and prepare scan data, and Civil 3D (along with other Autodesk products) can attach point clouds, snap to them, cut sections through them and build surfaces from them. For GIS professionals, point clouds are a source of terrain models, building footprints, vegetation structure and change detection.

In this guide I’ll explain what a point cloud is and where it comes from, the file formats and the Autodesk workflow (ReCap to Civil 3D), how to check coordinate systems and accuracy, how to turn clouds into surfaces and features, how to take them into GIS, how to manage their enormous size, and the mistakes that waste days. It is part of our Autodesk series. For the program, see Civil 3D for GIS Users: Beginner’s Guide, and for the drone side of capture, Drone Photogrammetry to Civil 3D Surfaces and Working with Drones (UAV) and GIS.

A note on facts: ReCap’s features, file formats and cloud services have changed over time, and the details differ by version. I describe the concepts and typical steps. Check Autodesk’s current documentation.

Illustration: First returns describe the surface; the last returns classified as ground build the terrain model.
First returns describe the surface; the last returns classified as ground build the terrain model.

What Is a Point Cloud?

The data

Each point has, at minimum, X, Y and Z coordinates. Depending on the sensor and the processing, it may also have:

  • Intensity: the strength of the laser return, which helps to distinguish surfaces.
  • Color (RGB), from a camera, which makes the cloud look like a photograph.
  • Return number: laser pulses can produce several returns (first, last), as through vegetation.
  • Classification: a code that says what the point is (ground, building, vegetation, water and so on).
  • Time, scan angle and other technical attributes.

Classification codes

The ASPRS standard for the LAS format defines common class codes, which you will see in airborne and mobile data:

CodeClass
0Never classified
1Unassigned
2Ground
3Low vegetation
4Medium vegetation
5High vegetation
6Building
7Low point (noise)
9Water
10Rail
11Road surface
17Bridge deck
18High noise

(Check the specification version and the provider’s documentation, since some projects use custom schemes.) Classification is what allows you to build a terrain (ground only) from a cloud that also contains buildings and trees.

Where point clouds come from

SourceTypical useCharacteristics
Airborne LiDAR (aircraft, helicopter, drone)Terrain, vegetation, large areas, corridorsGood coverage, penetrates vegetation gaps, density often 1 to 100 points per square meter
Mobile LiDAR (vehicle, backpack)Roads, streets, rail, urban corridorsHigh density along the route, accuracy depends on GNSS and inertial systems
Terrestrial laser scanning (TLS) (tripod)Buildings, plants, bridges, industrial sites, surveysVery high density and accuracy over small areas, many setups to register
Photogrammetry (structure from motion)Terrain, sites, structures, from drones and aircraftColor from imagery, accuracy depends on control, struggles with vegetation and uniform surfaces
Handheld and SLAM scannersInteriors, tunnels, quick captureConvenient, accuracy varies, drift over long paths
Consumer devices (phone depth sensors)Quick visual recordsLimited accuracy and range

See Satellite Imagery Sources: Free vs. Paid for context, and Digital Elevation Models (DEM) and Terrain Analysis for what terrain models are made of.

File formats

FormatNotes
LASThe standard for airborne and mobile LiDAR. Stores integer coordinates with a scale and offset, plus attributes
LAZA lossless compressed version of LAS, much smaller. The usual choice for exchange and archiving
COPCA LAZ-based layout organized for streaming and cloud access. See Cloud-Native Geospatial (COG, STAC, Zarr)
E57A vendor-neutral standard, common for terrestrial scans, which can include images and scanner positions
RCP and RCSAutodesk’s ReCap formats: RCS holds an indexed scan, and RCP is a project that references several RCS files. Efficient for display in Autodesk software
PTS, PTX, XYZ, ASCIISimple text formats. Large and slow, but universal
PLY, OBJMesh and point formats from the design and graphics world

The Autodesk Workflow: ReCap, then Civil 3D

ReCap: from raw scans to a usable project

ReCap (the Pro version, in current packaging) is Autodesk’s application for working with reality capture data. Its typical roles:

  1. Import scan files from the scanner or the processing software (formats vary by version).
  2. Register multiple scans into a single, consistent coordinate frame. Terrestrial scanning produces many setups, each with its own local coordinates. Registration aligns them, using targets (spheres or markers seen in several scans), cloud-to-cloud matching of overlapping areas, or known positions of the scanner.
  3. Review the registration quality: the tool reports residuals and the overlap. Poor registration produces ghosted walls and double surfaces.
  4. Apply the coordinate system: place the project in the real-world coordinate system, using surveyed control points or known scanner positions. See below.
  5. Clean: remove noise, stray points, moving objects (people, vehicles) and unwanted regions. Use region tools to cut and delete areas.
  6. Index and export as an RCP project (with RCS scans) for use in other Autodesk software, or export to other formats such as LAS, E57 and PTS for use elsewhere.

Some versions of ReCap also offered photo-based reconstruction services, and the options and cloud services around ReCap have changed over the years. Check what your subscription includes.

Civil 3D (and AutoCAD, Map 3D, Revit, InfraWorks): using the cloud

In Civil 3D, you attach a point cloud (an RCP or RCS file) to the drawing, as a reference, much like an image or an xref. Typical uses:

  • Display and visual checking: color by RGB, elevation, intensity or classification.
  • Cropping: limit the visible region to a box, a slice or a section, which is essential for performance and for clarity.
  • Snapping: use point cloud object snaps to draw linework on top of the cloud, tracing edges and features.
  • Cutting sections and slices: to see profiles, cross-sections and clearances.
  • Creating a surface from the cloud (ground points), with filters for area and classification, and sampling to control density. See Surfaces and TIN Models in Civil 3D: Slope, Volumes and Watersheds.
  • Measuring distances, heights and clearances directly in the cloud.
  • Comparing as-built conditions with design models.

The Civil 3D drawing doesn’t contain the points. It references the RCP file, so the cloud must travel with the drawing, and paths must work for everyone. See Civil 3D Data Shortcuts and Xref Problems.

Other Autodesk tools

Revit can use point clouds as a basis for modeling existing buildings, and InfraWorks can display them for context. Navisworks can use them for model review. See BIM and GIS Integration: Revit, IFC and CityGML and InfraWorks: Planning and Conceptual Design with GIS Data.


Coordinate Systems and the Header: Check Before You Trust

Point cloud data has coordinates, and, as always, a coordinate system, a unit and a vertical datum. Errors here are expensive.

What to check

  1. Horizontal coordinate system and units. Is the cloud in the project’s system, a national grid or a local scanner frame?
  2. Vertical datum. Ellipsoidal or orthometric? Which geoid model?
  3. Grid versus ground (for survey-based scans). See Coordinate Systems in AutoCAD Map 3D and Civil 3D Explained.
  4. Coordinate magnitude. Large coordinates (millions of meters) can cause display jitter in some contexts. Some workflows use a local offset, which must be documented.
  5. Extents. Do the bounds of the cloud make sense for the site?

Reading a LAS header

A LAS file has a header with the number of points, the scale factors and offsets used to store coordinates, and the bounding box. You can read it without special software, to check the extents and the offsets before importing a multi-gigabyte file:

import struct

def read_las_header(path):
    """Read the main fields of a LAS 1.2 to 1.4 public header."""
    with open(path, "rb") as f:
        h = f.read(227)
    if h[0:4] != b"LASF":
        raise ValueError("not a LAS file")
    major, minor = h[24], h[25]
    point_format = h[104]
    point_count, = struct.unpack_from("<I", h, 107)            # legacy count (see the 1.4 fields for very large files)
    sx, sy, sz, ox, oy, oz, maxx, minx, maxy, miny, maxz, minz = struct.unpack_from("<12d", h, 131)
    return {
        "version": f"{major}.{minor}",
        "point_format": point_format,
        "point_count": point_count,
        "scale": (sx, sy, sz),
        "offset": (ox, oy, oz),
        "min": (minx, miny, minz),
        "max": (maxx, maxy, maxz),
    }

print(read_las_header("scan.las"))

Check that the minimum and maximum values fall where the site should be, in the expected units. A cloud whose X values are around 450,000 and Y around 5,410,000 is in a UTM-like system in meters. If the Z range is 198 to 260 meters, is that plausible for the site? (The header of a LAZ file is the same, but the file is compressed after it.) The CRS is usually stored in a variable-length record, or in an accompanying file. Not all files carry it, so ask for it in writing. See Missing or Unknown Projection: How to Fix It.

Assigning and transforming

  • Use control points: surveyed points that appear in the cloud (targets, corners) to register or transform the cloud into the project’s system.
  • Assign vs transform: as with any data, labeling a cloud with a coordinate system doesn’t move it. Moving it needs a transformation.
  • Keep the original: keep the raw scans in their original frame, and document the transformation parameters.

Accuracy: Absolute, Relative and Local

Point clouds look so precise that it is easy to forget that they have error.

Kinds of accuracy

  • Relative (local) accuracy: how well distances and shapes within a scan are measured. Terrestrial scanners are excellent here, often millimeters.
  • Registration accuracy: how well different scans fit together. Depends on targets, overlap and the method.
  • Absolute accuracy: how well the cloud is positioned in the real-world system. Depends on control: survey points, GNSS and inertial data. A cloud can be locally perfect and globally shifted.
  • Vertical accuracy is usually less than horizontal, especially for photogrammetry and mobile systems.
  • Drift: in mobile and SLAM systems, errors accumulate over distance, unless corrected with control.

Density is not accuracy

A cloud with 500 points per square meter isn’t necessarily more accurate than one with 5. Density affects detail and the ability to detect small features. Accuracy depends on the sensor, the positioning and the control.

Checking accuracy

The only real test is independent check points: surveyed points not used in registration or adjustment.

  1. Identify the check points in the cloud (target centers, corners, ground shots).
  2. Measure the cloud’s coordinates there.
  3. Compute the differences and their statistics.
import numpy as np

def vertical_stats(surface_z, check_z):
    r = np.asarray(surface_z) - np.asarray(check_z)
    rmse = float(np.sqrt(np.mean(r ** 2)))
    return {
        "n": len(r),
        "mean": round(float(r.mean()), 3),            # a systematic bias
        "std": round(float(r.std(ddof=1)), 3),
        "rmse": round(rmse, 3),
        "max_abs": round(float(np.abs(r).max()), 3),
        "nssda_95": round(1.96 * rmse, 3),            # 95% vertical accuracy, if errors are normal and unbiased
    }

check_z = np.array([201.12, 199.80, 205.30, 198.65, 202.40, 200.05])
cloud_z = check_z + np.array([0.03, -0.02, 0.05, 0.01, -0.04, 0.06])
print(vertical_stats(cloud_z, check_z))
# n 6, mean 0.015, std 0.039, rmse 0.039, max_abs 0.06, nssda_95 0.076

The mean reveals a systematic offset (a wrong datum, a wrong control point), while the standard deviation reflects random noise. The 1.96 factor is the one used in the US National Standard for Spatial Data Accuracy for vertical accuracy at the 95 percent confidence level, if the errors are roughly normal and unbiased. Use the accuracy statement that your specification requires. Horizontal accuracy is checked the same way, with the two horizontal components. A formal accuracy report needs enough check points, well distributed across the site, and in all the land cover types.


From Cloud to Surface: Ground, Filtering and Thinning

A point cloud of a site contains everything: ground, buildings, vehicles, vegetation, noise. A terrain surface needs only the ground.

Ground classification

  • Provided classification: airborne data is often delivered with ground points already classified (code 2). Check its quality: look for buildings left in, and ground removed on steep slopes.
  • Automatic ground filters: algorithms such as progressive morphological filters, cloth simulation and progressive TIN densification identify ground points. They need parameters (cell size, slope, thresholds) tuned to the terrain. See open-source tools such as PDAL.
  • Manual editing: for critical areas, a technician reviews and corrects classification.
  • Noise removal: statistical outlier filters remove stray points, birds and reflections.

Thinning (decimation)

A dense cloud makes a surface with more triangles than any design needs. Thinning reduces the point count while preserving the shape.

  • Grid-based: keep one point per cell (for ground, the lowest point in each cell, to avoid vegetation).
  • Random or Poisson sampling: uniform density.
  • Feature-preserving: keep more points where the surface curves.
  • Choose the density by purpose: a design surface for grading might need one point per 1 to 2 square meters on flat ground and more in complex areas. A corridor study may need much less.

A simple demonstration of grid-based, lowest-point thinning:

import numpy as np
import pandas as pd

def lowest_per_cell(xyz, cell):
    """Keep the lowest point in each square cell: a quick, ground-biased thinning."""
    df = pd.DataFrame(xyz, columns=["x", "y", "z"])
    df["ix"] = np.floor((df.x - df.x.min()) / cell).astype(int)
    df["iy"] = np.floor((df.y - df.y.min()) / cell).astype(int)
    return df.loc[df.groupby(["ix", "iy"])["z"].idxmin(), ["x", "y", "z"]].to_numpy()

# For 200,000 synthetic points with 30 percent vegetation, a 2 m cell keeps about 10,000 points
# (one per cell), and the highest remaining point stays near the ground level.

A tested run of this logic on a synthetic site (200,000 points, 30 percent of them vegetation up to 8 meters above the ground) reduced the cloud to 10,000 points, with the highest remaining point only about 1 centimeter above the mean ground level. Real vegetation is more complex, so always inspect the result.

Using PDAL for classification and DEM creation

PDAL is an open-source library and command-line tool for point cloud processing. A pipeline (a JSON file) can remove noise, classify ground, keep only ground points and write a DEM:

{
  "pipeline": [
    "input.laz",
    { "type": "filters.outlier", "method": "statistical", "mean_k": 8, "multiplier": 3.0 },
    { "type": "filters.smrf" },
    { "type": "filters.range", "limits": "Classification[2:2]" },
    { "type": "writers.gdal", "filename": "dtm.tif", "resolution": 1.0,
      "output_type": "idw", "gdalopts": "COMPRESS=DEFLATE" }
  ]
}

Run it with pdal pipeline pipeline.json. (The filter names and options are as I know them. Check the PDAL documentation for your version, and test on a small tile first.) The resulting DTM (a raster) can be turned into a Civil 3D surface, or used directly in GIS. See Raster Processing in Python: Rasterio, Xarray, and NDVI from Code and Digital Elevation Models (DEM) and Terrain Analysis.

Breaklines still matter

As with any surface, a cloud-based surface benefits from breaklines along edges, such as kerbs, ditches and the toes of slopes, because triangulation of a dense cloud will still smooth over sharp features if the points are thinned. Digitize breaklines in the cloud, using snapping, and add them to the surface definition. See Surfaces and TIN Models in Civil 3D: Slope, Volumes and Watersheds.


Other Things You Can Make From a Point Cloud

  • Building footprints and heights, from classified building points, as polygons with a height attribute, for GIS and 3D city models. See Digital Twins and 3D GIS.
  • A canopy height model, from the difference between a surface model (highest points) and a terrain model (ground), for forestry and vegetation analysis. See GIS in Environmental Management and Climate Change.
  • Cross-sections and clearances, for bridges, tunnels, rail and power lines.
  • As-built verification: compare the cloud with the design surface or model, and map the differences as a color-coded deviation map.
  • Stockpile and earthwork volumes, from surfaces built at different dates. See Surfaces and TIN Models in Civil 3D: Slope, Volumes and Watersheds.
  • Utilities and structures, by tracing pipes, columns and equipment in the cloud.
  • Change detection, comparing clouds from different times.
  • Visualization: fly-throughs, web viewers and immersive presentations.
  • Plans, elevations and sections of existing buildings and structures, for renovation and heritage work. See GIS in Archaeology and Heritage.

From Point Clouds to GIS

Products to deliver

NeedProductNotes
TerrainA DEM (GeoTIFF), and contoursState the cell size, datum and accuracy
Surface for analysisA DSM and a DTMKeep both: surface model and terrain model
BuildingsFootprint polygons with height attributesState the extraction method and accuracy
VegetationCanopy height raster, tree locationsA different product from terrain
Features traced from the cloudVector layers (pipes, poles, kerbs) with attributesMark as “interpreted from point cloud”, with source and date
The cloud itselfLAZ or COPC with the CRSFor archiving and cloud viewing. See Cloud-Native Geospatial (COG, STAC, Zarr)
Deviation mapsA raster or points colored by differenceFor as-built verification
ViewersWeb-based point cloud viewersFor stakeholders

Georeferencing and metadata

Every deliverable needs the coordinate system (EPSG codes for horizontal and vertical), units, date of capture, sensor and method, accuracy statement, classification scheme and the license. See Metadata in GIS: Why It Matters and How to Create It.

Tools on the GIS side


Managing Size and Performance

A single scan can have hundreds of millions of points. A corridor can have billions. Without discipline, you will run out of disk space, memory and patience.

  • Index the data (RCP and RCS formats, COPC) so that software loads only what is visible.
  • Crop, don’t load everything. Use regions, sections and slices.
  • Limit display density, and the number of points drawn.
  • Use LAZ for storage and transfer.
  • Keep clouds off slow network shares, or work from a local cache.
  • Plan storage: raw data, processed data and deliverables. Terabytes accumulate quickly.
  • Tile large projects into manageable blocks with consistent naming.
  • Use a strong workstation: memory, a fast disk and a good graphics card.
  • Archive the raw data with metadata, in open formats, and keep the registered versions. See Autodesk Docs and Construction Cloud for Geospatial and CAD Data for the limits of cloud platforms with large files.
  • Document which version of the cloud each deliverable came from.

See AutoCAD Map 3D and Civil 3D Slow or Crashing.


Privacy, Safety and Contracts

Point clouds capture everything in view, including people, vehicles, house interiors seen through windows, number plates and sensitive installations.

  • Privacy: remove or blur personal information where required, restrict access and follow the law and the contract. Mobile mapping of streets in some jurisdictions is regulated.
  • Security: a detailed scan of a plant, a substation or a government building may be sensitive. Control who holds the data.
  • Safety: scanning on active roads and industrial sites follows safety rules.
  • Contract and ownership: who owns the scans, the right to reuse them and the retention period.
  • Accuracy claims: don’t claim survey-grade accuracy without control, check points and a qualified surveyor’s sign-off, where regulations require it.

A Worked Example: A Plant Yard, From Scans to Surface and GIS Layers

Task: document an industrial yard for an extension project: a surface of the ground, the footprints of buildings and tanks, the positions of the main pipe racks, all in the project’s coordinate system, with an as-built check against the existing drawings.

  1. Plan the capture: terrestrial scanning with 38 setups, with targets placed so that each scan sees at least four, and eight surveyed control points for absolute positioning. Plan a margin for vegetation and traffic.
  2. Capture: four hours of scanning, and a control survey with GNSS and total station, giving coordinates in the project CRS.
  3. Register in ReCap: use targets for registration and review the residuals (all under 5 millimeters), then add the control points to place the project in the real-world system. Check with three control points held back as check points (errors under 1 centimeter horizontally and 1.5 centimeters vertically).
  4. Clean: remove people, vehicles and noise. Crop to the yard boundary.
  5. Index and export: an RCP project for Civil 3D and an E57 or LAZ for GIS use.
  6. Create the ground surface in Civil 3D: attach the RCP, select ground points (using filters on the area and the classification, with a manual cleanup under the tanks), thin to one point per square meter, add breaklines along kerbs and bunds, and build the surface. Check with 12 independent survey shots: RMSE 2.4 centimeters.
  7. Trace features on the cloud with point snapping: building and tank outlines (at ground level), the center lines and supports of the pipe racks, and kerbs. Each traced feature goes on a layer named for its type, with attributes for source, date and accuracy.
  8. Compare with the as-built drawings: overlay the drawings on the cloud, and map the deviations. Many are small, but the main pipe rack is about 35 centimeters off in plan, and a tank diameter is wrong by 20 centimeters. Record them as discrepancies, and update the drawings.
  9. Export to GIS: the DEM (1 meter), the building and tank footprints as polygons with heights, the pipe rack lines, the discrepancy log and the deviation map. Set the coordinate system, datum and accuracy in a README. See Utilities Mapping with AutoCAD Map 3D and Civil 3D.
  10. Archive: the raw scans, the registration report, the control data, the RCP, the LAZ and the deliverables, in the project’s data environment.
  11. Hand over to the designers, with a note of what is measured, and what is interpreted.

The yard scan was not an exceptional project. It was a systematic one, and what made it valuable was the control, the check points and the habit of recording what was measured and what was interpreted.


Common Mistakes

  • Trusting a point cloud’s apparent precision and ignoring its absolute accuracy.
  • Not using control and check points.
  • Not checking the coordinate system, units and vertical datum before importing.
  • Assigning a CRS instead of transforming, or the reverse.
  • Poor registration, with ghosted surfaces, accepted without reviewing the residuals.
  • Building a surface from all points, including vegetation and buildings.
  • Not thinning, and making surfaces too heavy to use.
  • Over-thinning and smoothing away important features.
  • Forgetting breaklines.
  • Attaching a huge cloud with no cropping, and freezing the machine.
  • Sending a drawing without the cloud files.
  • Mixing raw and processed versions.
  • Ignoring privacy and security, and sharing scans carelessly.
  • Presenting interpreted features as measured.
  • Not archiving the raw data and the processing record.

Final Thoughts

When I look back at that pumping station, what stays with me is not the 600 million points. It is how calm the conversation became afterwards. There had been months of low-level disagreement about where things were, and who had drawn what. With the cloud on the screen, the discussion turned from opinion to measurement. People simply pointed at the pipe.

That is the real value of a point cloud in a design and GIS workflow: a shared, measurable record of what is there. But it only works if the record is honest: tied to control, checked against independent points, labeled with its limits and kept with its metadata. Start with a small project. Scan or obtain a small cloud, check its header, register it to a few control points, build a surface from the ground points, and compute the RMSE against check shots. When the number comes out, you will understand point clouds better than the glossiest brochure could teach.

Where to go next: see how drone data becomes design surfaces in Drone Photogrammetry to Civil 3D Surfaces, and how clouds and imagery sit together in Aerial Imagery and Rasters in AutoCAD Map 3D and Civil 3D.

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded GISauthority.com to share practical guidance on GIS and spatial technologies.