Skip to content

Download tiles to s3 bucket

Compare
Choose a tag to compare
@nrjadkry nrjadkry released this 17 Jan 11:51
· 4 commits to master since this release

Release Notes - Version 1.0.0

New Feature

Option to Store Output Files in Amazon S3

Overview

This release introduces a new feature that addresses the issue of uploading tiles directly into Amazon S3. Users can now leverage the TileClipper functionality to download tiles and store them directly in an S3 bucket. This enhancement enhances the existing capabilities by providing flexibility in choosing the storage location for the output files.

Usage
To use this new feature, the following parameters need to be provided when initializing the TileClipper:

aws_key: Access key ID for your Amazon Web Services (AWS) account.
aws_secret: Secret access key corresponding to the AWS account.
s3_bucket: Name of the Amazon S3 bucket where the downloaded tiles will be stored.
tile_layer_name: Name of the tile layer in the S3 bucket where tiles will be saved.
Example:

tile_clipper = TileClipper(base_url, bbox, output_folder, max_workers, True, aws_key, aws_secret, s3_bucket, tile_layer_name)
tile_clipper.download_tiles(10, 15)

Parameters
aws_key: Access key ID for AWS authentication.
aws_secret: Secret access key for secure communication with AWS services.
s3_bucket: Name of the S3 bucket for storing downloaded tiles.
tile_layer_name: Name of the tile layer in the S3 bucket.

Notes

The new functionality does not impact existing functionality.
Other parameters remain similar to the existing functionality.