示例#1
0
def ST_IsValid(geos):
    return arctern.ST_IsValid(geos)
示例#2
0
def test_ST_IsValid():
    data = pandas.Series(["POINT (1.3 2.6)", "POINT (2.6 4.7)"])
    rst = arctern.ST_IsValid(arctern.ST_GeomFromText(data))
    assert rst[0]
    assert rst[1]
def python_test(data):
    TIME_START(func_name)
    arctern.ST_IsValid(arctern.ST_GeomFromText(data))
    TIME_END(func_name)

    return TIME_INFO()
示例#4
0
def test_ST_IsValid():
    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_IsValid(arctern.ST_GeomFromText(data))
    assert len(rst) == 10000000
示例#5
0
def test_ST_IsValid():
    data = pandas.Series(["POINT (1.3 2.6)", "POINT (2.6 4.7)"])
    rst = arctern.ST_IsValid(data)
    assert rst[0] == 1
    assert rst[1] == 1
示例#6
0
def test_ST_IsValid():
    data = pandas.Series(["POINT (1.3 2.6)", "POINT (2.6 4.7)"])
    array = pyarrow.array(data)
    rst = arctern.ST_IsValid(array)
    assert rst[0] == 1
    assert rst[1] == 1