geoutils.PointCloud.from_xyz

geoutils.PointCloud.from_xyz#

classmethod PointCloud.from_xyz(x, y, z, crs, data_column=None, use_z=False)#

Create a point cloud from separate X, Y and Z arrays.

Parameters:
  • x (ArrayLike) – X coordinates.

  • y (ArrayLike) – Y coordinates.

  • z (ArrayLike) – Point values or Z coordinates.

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

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

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

Return type:

Any

Returns:

A PointCloud or GeoDataFrame matching the class interface.