Point Cloud🍋
PointCloud
🍋
Bases: GeoRefObject
Object representing an arbitrary 3D cloud of points defined by its X, Y, Z geometry
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
object name. |
required |
xyz |
Optional[Data]
|
geometry data, respectively X, Y and Z. |
None
|
Example
import geolime as geo
import numpy as np
xyz = np.arange(30).reshape(10, 3)
point_cloud = geo.PointCloud("MyPointCloud", xyz)
delete_points(region)
🍋
Delete points in region.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
region |
str
|
Region or condition to select points. |
required |
element_count()
🍋
Return the number of points in the cloud of points. Same as sample_count().
Returns:
Type | Description |
---|---|
int
|
Number of points. |
Example
import geolime as geo
import numpy as np
xyz = np.arange(30).reshape(10, 3)
point_cloud = geo.PointCloud("MyPointCloud", xyz)
point_cloud.element_count()
Output
10
keep_only_points(region)
🍋
Keep points in region.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
region |
str
|
Region or condition to select points. |
required |
sample_count()
🍋
Return the number of points in the cloud of points. Same as element_count().
Returns:
Type | Description |
---|---|
int
|
Number of points. |
Example
import geolime as geo
import numpy as np
xyz = np.arange(30).reshape(10, 3)
point_cloud = geo.PointCloud("MyPointCloud", xyz)
point_cloud.sample_count()
Output
10
Last update:
2022-01-06