geoutils.PointCloud.from_xyz#
- classmethod PointCloud.from_xyz(x, y, z, crs, data_column=None, use_z=False)[source]#
Create point cloud from three 1D array-like coordinates for X/Y/Z.
Note that this is the most modular method to create a point cloud, as it allows to specify different data types for the different coordinates or columns.
- Parameters:
x (
Union[Buffer,_SupportsArray[dtype[Any]],_NestedSequence[_SupportsArray[dtype[Any]]],complex,bytes,str,_NestedSequence[complex|bytes|str]]) – X coordinates of point cloud.y (
Union[Buffer,_SupportsArray[dtype[Any]],_NestedSequence[_SupportsArray[dtype[Any]]],complex,bytes,str,_NestedSequence[complex|bytes|str]]) – Y coordinates of point cloud.z (
Union[Buffer,_SupportsArray[dtype[Any]],_NestedSequence[_SupportsArray[dtype[Any]]],complex,bytes,str,_NestedSequence[complex|bytes|str]]) – Z values of point cloud.crs (
CRS) – Coordinate reference system.data_column (
str|None) – Data column name to associate to 2D point geometries (defaults to “z” if none is passed).use_z (
bool) – Use 3D point geometries with Z coordinates instead of a data column.
- Return type:
:return Point cloud.