def test_ST_ConvexHull(): data = ["POINT (1.1 101.1)"] data = pandas.Series(data) rst = arctern.ST_AsText( arctern.ST_ConvexHull(arctern.ST_GeomFromText(data))) assert rst[0] == "POINT (1.1 101.1)"
def test_ST_ConvexHull(): geo = "POLYGON ((0 0,0 1,1 1,1 0,0 0))" arr = [geo for x in range(1, 10000001)] data = pandas.Series(arr) rst = arctern.ST_AsText( arctern.ST_ConvexHull(arctern.ST_GeomFromText(data))) assert len(rst) == 10000000
def ST_ConvexHull(geos): return arctern.ST_ConvexHull(geos)
def python_test(data): TIME_START(func_name) arctern.ST_AsText(arctern.ST_ConvexHull(arctern.ST_GeomFromText(data))) TIME_END(func_name) return TIME_INFO()
def test_ST_ConvexHull(): data = ["POINT (1.1 101.1)"] data = pandas.Series(data) rst = arctern.ST_ConvexHull(data) assert rst[0] == "POINT (1.1 101.1)"
def test_ST_ConvexHull(): data = ["POINT (1.1 101.1)"] array = pyarrow.array(pandas.Series(data)) rst = arctern.ST_ConvexHull(array) assert rst[0] == "POINT (1.1 101.1)"