geofileops.options.set_subdivide_check_parallel_rows#

static options.set_subdivide_check_parallel_rows(rows: int | None) _RestoreOriginalHandler#

For a file being checked in parallel, the number of rows to check.

The value set should be an integer representing the minimum number of rows a file must have to check for subdivision in parallel. If not set, defaults to 500000.

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_ROWS to a string representing the number of rows.

Added in version 0.11.0.

Parameters:

rows (int | None) – The minimum number of rows a file must have to check for subdivision in parallel. 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_rows(1000000)

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

with gfo.options.set_subdivide_check_parallel_rows(1000000):
    gfo.intersection(...)