easyidp.geotools.is_single_point#

easyidp.geotools.is_single_point(points_np)#

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

Parameters:

points_np (np.ndarray) – the ndarray point coordiantes

Returns:

the converted coordinate, whether is single point

Return type:

ndarray, bool

Example

>>> 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)