Exemple #1
0
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)"
Exemple #2
0
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
Exemple #3
0
def ST_ConvexHull(geos):
    return arctern.ST_ConvexHull(geos)
Exemple #4
0
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()
Exemple #5
0
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)"
Exemple #6
0
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)"