Beispiel #1
0
def ST_IsSimple(geos):
    return arctern.ST_IsSimple(geos)
Beispiel #2
0
def test_ST_IsSimple():
    data = pandas.Series(
        ["POLYGON ((1 1,1 2,2 2,2 1,1 1))", "POLYGON ((1 1,1 2,2 2,2 1,1 1))"])
    rst = arctern.ST_IsSimple(arctern.ST_GeomFromText(data))
    assert rst[0] == 1
    assert rst[1] == 1
def python_test(data):
    TIME_START(func_name)
    arctern.ST_IsSimple(arctern.ST_GeomFromText(data))
    TIME_END(func_name)

    return TIME_INFO()
Beispiel #4
0
def test_ST_IsSimple():
    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_IsSimple(arctern.ST_GeomFromText(data))
    assert len(rst) == 10000000
Beispiel #5
0
def test_ST_IsSimple():
    data = pandas.Series(
        ["POLYGON ((1 1,1 2,2 2,2 1,1 1))", "POLYGON ((1 1,1 2,2 2,2 1,1 1))"])
    rst = arctern.ST_IsSimple(pyarrow.array(data))
    assert rst[0] == 1
    assert rst[1] == 1