How to use the pygeodiff.geodifflib.GeoDiffLibConflictError function in pygeodiff

To help you get started, we’ve selected a few pygeodiff examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lutraconsulting / geodiff / pygeodiff / geodifflib.py View on Github external
def _parse_return_code(rc, msg):
    if rc == SUCCESS:
        return
    elif rc == ERROR:
        raise GeoDiffLibError(msg)
    elif rc == CONFLICT:
        raise GeoDiffLibConflictError(msg)
    elif rc == UNSUPPORTED_CHANGE:
        raise GeoDiffLibUnsupportedChangeError(msg)
    else:
        raise GeoDiffLibVersionError("Internal error (enum " + str(rc) + " not handled)")