Available also on: Delphi | .NET | Java | ActiveX.
Generate aggregated shapes for the visible extent using the current aggregation algorithm.
# Python def Prepare( self, _extent: TGIS_Extent, _query: str ) -> None:
| Name | Type | Description |
|---|---|---|
| _extent | TGIS_Extent | View extent used to limit aggregation to visible shapes. |
| _query | str | Optional SQL (Structured Query Language) filter expression used to limit source shapes before aggregation. Empty means no filter. |
PURPOSE: Implement the core aggregation logic for visible vector features, such as clustering, binning, or other summary representations used during rendering.
BEHAVIOR: Abstract method implemented by descendants. It is called during the draw cycle and processes shapes within _extent that match _query. Use HideShape to suppress source shapes and AddShape to register aggregated output shapes.
USAGE: Build aggregated shapes for the current map view.
aggregator.Prepare(viewExtent, query) aggregator.HideShape(sourceUid) aggregator.AddShape(clusterShape, value, uids)
CONSTRAINTS: Abstract method. Aggregated output registered here is valid only for the current draw cycle and is cleared after rendering completes.