geoutils.PointCloud.from_array

geoutils.PointCloud.from_array#

classmethod PointCloud.from_array(data, crs, data_column=None, use_z=False)#

Create a point cloud from a 3 x N or N x 3 array of X, Y and Z values.

Parameters:
  • data (NDArray[floating[Any] | integer[Any]]) – Coordinates and values arranged as 3 x N or N x 3.

  • crs (CRS) – Coordinate reference system of the point cloud.

  • data_column (str | None) – Column name used to store Z values when use_z is False. Defaults to z.

  • use_z (bool) – Whether to store Z values in 3D point geometry instead of a dataframe column.

Return type:

Any

Returns:

A PointCloud or GeoDataFrame matching the class interface.