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 storezwhenuse_zis False. Defaults toz.use_z (
bool) – Whether to storezin 3D point geometry instead of a dataframe column.
- Return type:
- Returns:
A PointCloud or GeoDataFrame matching the class interface.