Session.apply#

Session.apply(operation_name, geometries, **kwargs)[source]#

Apply a GeometryOperations function.

Parameters:
operation_namestr

Registered operation name (e.g. "cluster").

geometrieslist of Geometry

Target geometries.

**kwargs

Operation-specific parameters. Use workers=N to control the number of parallel worker processes.

Special flags (consumed before dispatching):

  • persist (bool, default True): when False, results are stored in _last_results but NOT added to session containers (transient, only available via @last).

Returns:
list of Geometry

Newly created geometries.