public class HeatmapSurface extends Object
The Heatmap surface is computed as a grid (raster) of values representing the surface. For stability, the compute grid is expanded by the kernel radius on all four sides. This avoids "edge effects" from distorting the surface within the requested envelope.
The values in the output surface are normalized to lie in the range [0, 1].
|Constructor and Description|
Creates a new heatmap surface.
|Modifier and Type||Method and Description|
Adds a new data point to the surface.
Computes a grid representing the heatmap surface.
public HeatmapSurface(int kernelRadius, Envelope srcEnv, int xSize, int ySize)
kernelRadius- the kernel radius, in grid units
srcEnv- the envelope defining the data space
xSize- the width of the output grid
ySize- the height of the output grid
public void addPoint(double x, double y, double value)
x- the X ordinate of the point
y- the Y ordinate of the point
value- the data value of the point
public float computeSurface()
Copyright © 1996–2018 Geotools. All rights reserved.