geo3d.rasters.generator

Classes

RasterGenerator

Main public API for raster generation.

Module Contents

class geo3d.rasters.generator.RasterGenerator(color: bool = True)

Main public API for raster generation.

_pipeline_builder
color = True
generate(reader: str, filename: str, center: Tuple[float, float], output_png: str, output_tif: str | None = None, noise_outlier: bool = False, above_ground_filter: bool = False, height_threshold: float = 4.0, ept_resolution: float | None = None, ept_token: str | None = None, raster_resolution: float = 0.06, raster_side: int = 35, raster_window_size: float = 2.0, dry_run: bool = False) altametris.geo3d.rasters.types.GeoTransform | altametris.geo3d.core.pipeline.Pipeline

Generate a raster in PNG format from a point cloud.

Parameters:
  • reader (str) – The type of point cloud reader. ‘las’ or ‘ept’.

  • filename (str) – The path to the input point cloud.

  • center (Tuple[float, float]) – The center point of the raster in absolute values (X, Y).

  • output_png (str) – The path to the output PNG file.

  • output_tif (str) – The path to the TIF raster if not None. Defaults to None.

  • noise_outlier (bool, optional) – Remove noise from point cloud. Defaults to True.

  • above_ground_filter (bool, optional) – Filter points above ground using a height threshold. Defaults to True.

  • height_threshold (float, optional) – The height threshold to filter points above ground. Defaults to 4.0.

  • ept_resolution (float | None, optional) – The EPT input resolution. Defaults to None.

  • ept_token (str | None, optional) – The EPT token. Defaults to None.

  • raster_resolution (float, optional) – Raster cell resolution. Defaults to 0.06.

  • raster_side (int, optional) – The raster side in meters. Defaults to 35.

  • raster_window_size (float, optional) – Raster window size. Defaults to 2.0.

  • dry_run (bool, optional) – Return the PDAL pipeline but don’t run it. Defaults to False.

Returns:

A GeoTransform object containing georeference metadata or the pipeline if dry_run.

Return type:

GeoTransform | Pipeline