How to use the timezonefinder.global_settings.COORD2INT_FACTOR function in timezonefinder

To help you get started, we’ve selected a few timezonefinder 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 MrMinimal64 / timezonefinder / test / test_helpers.py View on Github external
def poly_conversion_fct(coords):
    array = np.array(coords)
    array *= COORD2INT_FACTOR
    assert (not np.any(array > MAX_ALLOWED_COORD_VAL))
    array = np.ndarray.astype(array, dtype=DTYPE_FORMAT_SIGNED_I_NUMPY)
    return array
github MrMinimal64 / timezonefinder / timezonefinder / helpers_numba.py View on Github external
def coord2int(double):
    return int(double * COORD2INT_FACTOR)
github MrMinimal64 / timezonefinder / timezonefinder / helpers.py View on Github external
def coord2int(double):
    return int(double * COORD2INT_FACTOR)
github MrMinimal64 / timezonefinder / timezonefinder / helpers_numba.py View on Github external
def coord2int(double):
    return int(double * COORD2INT_FACTOR)