Package org.apache.sedona.viz.core
Class ImageStitcher
java.lang.Object
org.apache.sedona.viz.core.ImageStitcher
The Class ImageStitcher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstitchImagePartitionsFromHadoopFile(String imageTilePath, int resolutionX, int resolutionY, int zoomLevel, int partitionOnX, int partitionOnY) Stitch image partitions from hadoop file.static booleanstitchImagePartitionsFromLocalFile(String imageTilePath, int resolutionX, int resolutionY, int zoomLevel, int partitionOnX, int partitionOnY) Stitch image partitions from local file.static booleanstitchImagePartitionsFromS3File(String regionName, String accessKey, String secretKey, String bucketName, String imageTilePath, int resolutionX, int resolutionY, int zoomLevel, int partitionOnX, int partitionOnY) Stitch image partitions from S 3 file.
-
Constructor Details
-
ImageStitcher
public ImageStitcher()
-
-
Method Details
-
stitchImagePartitionsFromLocalFile
public static boolean stitchImagePartitionsFromLocalFile(String imageTilePath, int resolutionX, int resolutionY, int zoomLevel, int partitionOnX, int partitionOnY) throws Exception Stitch image partitions from local file.- Parameters:
imageTilePath- the image tile pathresolutionX- the resolution XresolutionY- the resolution YzoomLevel- the zoom levelpartitionOnX- the partition on XpartitionOnY- the partition on Y- Returns:
- true, if successful
- Throws:
Exception- the exception
-
stitchImagePartitionsFromS3File
public static boolean stitchImagePartitionsFromS3File(String regionName, String accessKey, String secretKey, String bucketName, String imageTilePath, int resolutionX, int resolutionY, int zoomLevel, int partitionOnX, int partitionOnY) throws Exception Stitch image partitions from S 3 file.- Parameters:
regionName- the region nameaccessKey- the access keysecretKey- the secret keybucketName- the bucket nameimageTilePath- the image tile pathresolutionX- the resolution XresolutionY- the resolution YzoomLevel- the zoom levelpartitionOnX- the partition on XpartitionOnY- the partition on Y- Returns:
- true, if successful
- Throws:
Exception- the exception
-
stitchImagePartitionsFromHadoopFile
public static boolean stitchImagePartitionsFromHadoopFile(String imageTilePath, int resolutionX, int resolutionY, int zoomLevel, int partitionOnX, int partitionOnY) throws Exception Stitch image partitions from hadoop file.- Parameters:
imageTilePath- the image tile pathresolutionX- the resolution XresolutionY- the resolution YzoomLevel- the zoom levelpartitionOnX- the partition on XpartitionOnY- the partition on Y- Returns:
- true, if successful
- Throws:
Exception- the exception
-