User Tools

Site Tools


api:dk11:python:tatukgis_pdk.tgis_dynamicaggregatorabstract.prepare_tgis_extent_string

Table of Contents



TGIS_DynamicAggregatorAbstract.Prepare method

Generate aggregated shapes for the visible extent using the current aggregation algorithm.

Syntax

# Python
def Prepare(
  self,
  _extent: TGIS_Extent,
  _query: str
) -> None: 

Parameters

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.

Remarks

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.

2026/10/31 22:49

Page Tools