def ST_GeometryType(geos): return arctern.ST_GeometryType(geos)
def test_ST_GeometryType(): 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_GeometryType(arctern.ST_GeomFromText(data)) assert len(rst) == 10000000
def test_ST_GeometryType(): 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_GeometryType(arctern.ST_GeomFromText(data)) assert rst[0] == "ST_POLYGON" assert rst[1] == "ST_POLYGON"
def python_test(data): TIME_START(func_name) arctern.ST_GeometryType(arctern.ST_GeomFromText(data)) TIME_END(func_name) return TIME_INFO()