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:
  • 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 X
      resolutionY - the resolution Y
      datasetBoundary - the dataset boundary
      reverseSpatialCoordinate - the reverse spatial coordinate
      blurRadius - 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 X
      resolutionY - the resolution Y
      datasetBoundary - the dataset boundary
      reverseSpatialCoordinate - the reverse spatial coordinate
      blurRadius - the blur radius
      partitionX - the partition X
      partitionY - the partition Y
      parallelPhotoFilter - the parallel photo filter
      parallelRenderImage - the parallel render image
  • Method Details

    • EncodeToRGB

      protected Integer EncodeToRGB(int normalizedCount) throws Exception
      Description copied from class: VisualizationOperator
      Encode to RGB.
      Overrides:
      EncodeToRGB in class VisualizationOperator
      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 context
      spatialRDD - the spatial RDD
      Returns:
      true, if successful
      Throws:
      Exception - the exception