Click or drag to resize

IClusteringAlgorithmCalculateClusters Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Calculates all clusters in terms of the given map. If clustering the whole world (i.e. when running on a tile-server) the map object should encompass the entire world. For example:
int worldSizePx = TileSize * TilesPerSuperTile * Zoom;
Map map = new Map(new LatLon(0, 0), worldSizePx, worldSizePx, ZoomLevel.World);
IClusteringAlgorithms are not expected to implement caching.

Namespace:  Telogis.GeoBase.Clustering
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
IEnumerable<Cluster> CalculateClusters(
	IMap map,
	IEnumerable<IPointFeature> features,
	IClusterVisualization visualization
)

Parameters

map
Type: Telogis.GeoBaseIMap
The map to use for calculating pixel coordinates.
features
Type: System.Collections.GenericIEnumerableIPointFeature
The features to be clustered.
visualization
Type: Telogis.GeoBase.ClusteringIClusterVisualization
The visualization which will be used to draw the clusters.

Return Value

Type: IEnumerableCluster
The set of all clusters.
See Also