Class ChoroplethMap
java.lang.Object
org.apache.sedona.viz.core.VisualizationOperator
org.apache.sedona.viz.extension.visualizationEffect.ChoroplethMap
- All Implemented Interfaces:
Serializable
The Class ChoroplethMap.
- 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
ConstructorsConstructorDescriptionChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate) Instantiates a new choropleth map.ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, boolean generateVectorImage) Instantiates a new choropleth map.ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int partitionX, int partitionY, boolean parallelRenderImage) Instantiates a new choropleth map.ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int partitionX, int partitionY, boolean parallelRenderImage, boolean generateVectorImage) Instantiates a new choropleth map. -
Method Summary
Modifier and TypeMethodDescriptionprotected ColorEncodeToColor(int normalizedCount) Encode to color.booleanVisualize(org.apache.spark.api.java.JavaSparkContext sparkContext, org.apache.spark.api.java.JavaPairRDD<org.locationtech.jts.geom.Polygon, Long> spatialPairRDD) Visualize.Methods inherited from class org.apache.sedona.viz.core.VisualizationOperator
ApplyPhotoFilter, Colorize, CustomizeColor, EncodeToRGB, InitPhotoFilterWeightMatrix, Rasterize, Rasterize, RenderImage, setMaxPixelCount
-
Constructor Details
-
ChoroplethMap
public ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate) Instantiates a new choropleth map.- Parameters:
resolutionX- the resolution XresolutionY- the resolution YdatasetBoundary- the dataset boundaryreverseSpatialCoordinate- the reverse spatial coordinate
-
ChoroplethMap
public ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, boolean generateVectorImage) Instantiates a new choropleth map.- Parameters:
resolutionX- the resolution XresolutionY- the resolution YdatasetBoundary- the dataset boundaryreverseSpatialCoordinate- the reverse spatial coordinategenerateVectorImage- the generate vector image
-
ChoroplethMap
public ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int partitionX, int partitionY, boolean parallelRenderImage) Instantiates a new choropleth map.- Parameters:
resolutionX- the resolution XresolutionY- the resolution YdatasetBoundary- the dataset boundaryreverseSpatialCoordinate- the reverse spatial coordinatepartitionX- the partition XpartitionY- the partition YparallelRenderImage- the parallel render image
-
ChoroplethMap
public ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int partitionX, int partitionY, boolean parallelRenderImage, boolean generateVectorImage) Instantiates a new choropleth map.- Parameters:
resolutionX- the resolution XresolutionY- the resolution YdatasetBoundary- the dataset boundaryreverseSpatialCoordinate- the reverse spatial coordinatepartitionX- the partition XpartitionY- the partition YparallelRenderImage- the parallel render imagegenerateVectorImage- the generate vector image
-
-
Method Details
-
EncodeToColor
Description copied from class:VisualizationOperatorEncode to color.- Overrides:
EncodeToColorin classVisualizationOperator- Parameters:
normalizedCount- the normalized count- Returns:
- the color
- Throws:
Exception- the exception
-
Visualize
public boolean Visualize(org.apache.spark.api.java.JavaSparkContext sparkContext, org.apache.spark.api.java.JavaPairRDD<org.locationtech.jts.geom.Polygon, Long> spatialPairRDD) throws ExceptionVisualize.- Parameters:
sparkContext- the spark contextspatialPairRDD- the spatial pair RDD- Returns:
- true, if successful
- Throws:
Exception- the exception
-