public class ChoroplethMap extends 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 and Description |
---|
ChoroplethMap(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.
|
Modifier and Type | Method and Description |
---|---|
protected Color |
EncodeToColor(int normalizedCount)
Encode to color.
|
boolean |
Visualize(org.apache.spark.api.java.JavaSparkContext sparkContext,
org.apache.spark.api.java.JavaPairRDD<org.locationtech.jts.geom.Polygon,Long> spatialPairRDD)
Visualize.
|
ApplyPhotoFilter, Colorize, CustomizeColor, EncodeToRGB, InitPhotoFilterWeightMatrix, Rasterize, Rasterize, RenderImage, setMaxPixelCount
public ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate)
resolutionX
- the resolution XresolutionY
- the resolution YdatasetBoundary
- the dataset boundaryreverseSpatialCoordinate
- the reverse spatial coordinatepublic ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, boolean generateVectorImage)
resolutionX
- the resolution XresolutionY
- the resolution YdatasetBoundary
- the dataset boundaryreverseSpatialCoordinate
- the reverse spatial coordinategenerateVectorImage
- the generate vector imagepublic ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int partitionX, int partitionY, boolean parallelRenderImage)
resolutionX
- the resolution XresolutionY
- the resolution YdatasetBoundary
- the dataset boundaryreverseSpatialCoordinate
- the reverse spatial coordinatepartitionX
- the partition XpartitionY
- the partition YparallelRenderImage
- the parallel render imagepublic ChoroplethMap(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, boolean reverseSpatialCoordinate, int partitionX, int partitionY, boolean parallelRenderImage, boolean generateVectorImage)
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 imageprotected Color EncodeToColor(int normalizedCount) throws Exception
VisualizationOperator
EncodeToColor
in class VisualizationOperator
normalizedCount
- the normalized countException
- the exceptionpublic boolean Visualize(org.apache.spark.api.java.JavaSparkContext sparkContext, org.apache.spark.api.java.JavaPairRDD<org.locationtech.jts.geom.Polygon,Long> spatialPairRDD) throws Exception
sparkContext
- the spark contextspatialPairRDD
- the spatial pair RDDException
- the exceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.