예제 #1
0
def check_cs_get(result, func, cargs):
    "Check the coordinate sequence retrieval."
    check_cs_op(result, func, cargs)
    # Object in by reference, return its value.
    return last_arg_byref(cargs)
예제 #2
0
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
    if result == 0:
        raise GEOSException('Could not set value on coordinate sequence')
    else:
        return result


def check_cs_get(result, func, cargs):
<<<<<<< HEAD
    "Checking the coordinate sequence retrieval."
=======
    "Check the coordinate sequence retrieval."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
    check_cs_op(result, func, cargs)
    # Object in by reference, return its value.
    return last_arg_byref(cargs)


# ## Coordinate sequence prototype factory classes. ##
class CsInt(GEOSFuncFactory):
    "For coordinate sequence routines that return an integer."
    argtypes = [CS_PTR, POINTER(c_uint)]
    restype = c_int
    errcheck = staticmethod(check_cs_get)


class CsOperation(GEOSFuncFactory):
    "For coordinate sequence operations."
    restype = c_int

<<<<<<< HEAD
예제 #3
0
파일: coordseq.py 프로젝트: GoSteven/Diary
def check_cs_get(result, func, cargs):
    "Checking the coordinate sequence retrieval."
    check_cs_op(result, func, cargs)
    # Object in by reference, return its value.
    return last_arg_byref(cargs)
예제 #4
0
from ctypes import POINTER, c_double, c_int, c_uint