Class HeatMap
java.lang.Object
org.apache.sedona.viz.core.VisualizationOperator
org.apache.sedona.viz.extension.visualizationEffect.HeatMap
- All Implemented Interfaces:
Serializable
The Class HeatMap.
- See Also:
-
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
ConstructorsConstructorDescriptionHeatMap(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
Modifier and TypeMethodDescriptionprotected IntegerEncodeToRGB(int normalizedCount) Encode to RGB.booleanVisualize(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 Details
-
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 Details
-
EncodeToRGB
Description copied from class:VisualizationOperatorEncode to RGB.- Overrides:
EncodeToRGBin 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
-