Class HeatMap
- java.lang.Object
-
- org.apache.sedona.viz.core.VisualizationOperator
-
- org.apache.sedona.viz.extension.visualizationEffect.HeatMap
-
- All Implemented Interfaces:
Serializable
public class HeatMap extends VisualizationOperator
The Class HeatMap.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.sedona.viz.core.VisualizationOperator
blue, colorAlpha, colorizeOption, controlColorChannel, datasetBoundary, distributedRasterColorMatrix, distributedRasterCountMatrix, distributedRasterImage, distributedVectorColors, distributedVectorImage, distributedVectorObjects, green, hasBeenSpatialPartitioned, maxPixelCount, onlyDrawOutline, parallelPhotoFilter, parallelRenderImage, partitionIntervalX, partitionIntervalY, partitionX, partitionY, PhotoFilterConvolutionMatrix, photoFilterRadius, rasterImage, red, resolutionX, resolutionY, reverseSpatialCoordinate, useInverseRatioForControlColorChannel, vectorImage
-
-
Constructor Summary
Constructors Constructor Description HeatMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int blurRadius)
Instantiates a new heat map.HeatMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int blurRadius, int partitionX, int partitionY, boolean parallelPhotoFilter, boolean parallelRenderImage)
Instantiates a new heat map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Integer
EncodeToRGB(int normalizedCount)
Encode to RGB.boolean
Visualize(org.apache.spark.api.java.JavaSparkContext sparkContext, SpatialRDD spatialRDD)
Visualize.-
Methods inherited from class org.apache.sedona.viz.core.VisualizationOperator
ApplyPhotoFilter, Colorize, CustomizeColor, EncodeToColor, InitPhotoFilterWeightMatrix, Rasterize, Rasterize, RenderImage, setMaxPixelCount
-
-
-
-
Constructor Detail
-
HeatMap
public HeatMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int blurRadius)
Instantiates a new heat map.- Parameters:
resolutionX
- the resolution XresolutionY
- the resolution YdatasetBoundary
- the dataset boundaryreverseSpatialCoordinate
- the reverse spatial coordinateblurRadius
- the blur radius
-
HeatMap
public HeatMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int blurRadius, int partitionX, int partitionY, boolean parallelPhotoFilter, boolean parallelRenderImage)
Instantiates a new heat map.- Parameters:
resolutionX
- the resolution XresolutionY
- the resolution YdatasetBoundary
- the dataset boundaryreverseSpatialCoordinate
- the reverse spatial coordinateblurRadius
- the blur radiuspartitionX
- the partition XpartitionY
- the partition YparallelPhotoFilter
- the parallel photo filterparallelRenderImage
- the parallel render image
-
-
Method Detail
-
EncodeToRGB
protected Integer EncodeToRGB(int normalizedCount) throws Exception
Description copied from class:VisualizationOperator
Encode to RGB.- Overrides:
EncodeToRGB
in classVisualizationOperator
- Parameters:
normalizedCount
- the normalized count- Returns:
- the integer
- Throws:
Exception
- the exception
-
Visualize
public boolean Visualize(org.apache.spark.api.java.JavaSparkContext sparkContext, SpatialRDD spatialRDD) throws Exception
Visualize.- Parameters:
sparkContext
- the spark contextspatialRDD
- the spatial RDD- Returns:
- true, if successful
- Throws:
Exception
- the exception
-
-