easyidp.geotools.is_single_point#

easyidp.geotools.is_single_point(points_np)#

format one point coordinate [x,y,z] to [[x, y, z]]

参数:

points_np (np.ndarray) – the ndarray point coordiantes

返回:

the converted coordinate, whether is single point

返回类型:

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)