easyidp.geotools.is_single_point

easyidp.geotools.is_single_point(points_np)

将一个点坐标 [x,y,z] 格式化为 [[x, y, z]]

参数:

points_np (np.ndarray) -- ndarray 点坐标

返回:

转换后的坐标,是否为单点

返回类型:

ndarray, bool

示例

>>> import easyidp as idp
>>> import numpy as np

>>> a = np.array([2,3,4])

>>> o, b = idp.geotools.is_single_point(a)
(array([[2, 3, 4]]), True)