geofileops.options.set_subdivide_check_parallel_fraction#

static options.set_subdivide_check_parallel_fraction(fraction: int | None) _RestoreOriginalHandler#

For a file being checked in parallel, the fraction of features to check.

The value set should be an integer representing the fraction of features to check. If not set, defaults to 5, resulting in 20% of the features being checked.

Remarks:

  • You can also set the option temporarily by using this function as a context manager.

  • You can also set the option by directly setting the environment variable GFO_SUBDIVIDE_CHECK_PARALLEL_FRACTION to a string representing the fraction.

Added in version 0.11.0.

Parameters:

fraction (int | None) – The fraction of features to check for subdivision. If None, the option is unset (so the default behavior is used).

Examples

If you want to change the default value of the option in general, you can just call it as a function:

gfo.options.set_subdivide_check_parallel_fraction(10)

If you want to temporarily change the option, you can use it as a context manager:

with gfo.options.set_subdivide_check_parallel_fraction(10):
    gfo.intersection(...)