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)