Class ChoroplethMap

    • Constructor Detail

      • ChoroplethMap

        public ChoroplethMap​(int resolutionX,
                             int resolutionY,
                             org.locationtech.jts.geom.Envelope datasetBoundary,
                             boolean reverseSpatialCoordinate)
        Instantiates a new choropleth map.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        reverseSpatialCoordinate - 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 X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        reverseSpatialCoordinate - the reverse spatial coordinate
        generateVectorImage - 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 X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        reverseSpatialCoordinate - the reverse spatial coordinate
        partitionX - the partition X
        partitionY - the partition Y
        parallelRenderImage - 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 X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        reverseSpatialCoordinate - the reverse spatial coordinate
        partitionX - the partition X
        partitionY - the partition Y
        parallelRenderImage - the parallel render image
        generateVectorImage - the generate vector image
    • Method Detail

      • 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 Exception
        Visualize.
        Parameters:
        sparkContext - the spark context
        spatialPairRDD - the spatial pair RDD
        Returns:
        true, if successful
        Throws:
        Exception - the exception