cars.applications.rasterization.point_cloud_rasterization

this module contains the abstract PointCloudRasterization application class.

Module Contents

Classes

PointCloudRasterization

PointCloudRasterization

class cars.applications.rasterization.point_cloud_rasterization.PointCloudRasterization(conf=None)[source]

Bases: cars.applications.application_template.ApplicationTemplate

PointCloudRasterization

available_applications: Dict
default_application = 'simple_gaussian'
classmethod __init_subclass__(short_name, **kwargs)[source]
abstract get_margins(resolution)[source]

Get the margin to use for terrain tiles

Parameters

resolution – resolution of raster data (in target CRS unit)

Returns

margin in meters or degrees

abstract get_optimal_tile_size(max_ram_per_worker, superposing_point_clouds=1, point_cloud_resolution=0.5)[source]

Get the optimal tile size to use, depending on memory available

Parameters
  • max_ram_per_worker (int) – maximum ram available

  • superposing_point_clouds (int) – number of point clouds superposing

  • point_cloud_resolution (float) – resolution of point cloud

Returns

optimal tile size in meter

Return type

float

abstract run(point_clouds, epsg, resolution, orchestrator=None, dsm_file_name=None, color_file_name=None, mask_file_name=None, classif_file_name=None, performance_map_file_name=None, contributing_pair_file_name=None, filling_file_name=None, color_dtype=None, dump_dir=None)[source]

Run PointCloudRasterisation application.

Creates a CarsDataset filled with dsm tiles.

Parameters
  • point_clouds (CarsDataset filled with pandas.DataFrame) – merged point cloud

  • epsg (float) – epsg of raster data

  • resolution – resolution of raster data (in target CRS unit)

  • orchestrator – orchestrator used

  • dsm_file_name (str) – path of dsm

  • color_file_name (str) – path of color

  • mask_file_name (str) – path of color

  • classif_file_name (str) – path of color

  • performance_map_file_name (str) – path of confidence file

  • contributing_pair_file_name (str) – path of contributing pair file

  • filling_file_name (str) – path of filling file

  • color_dtype (str (numpy type)) – output color image type

  • dump_dir (str) – directory used for outputs with no associated filename

Returns

raster DSM

Return type

CarsDataset filled with xr.Dataset