Newer
Older
import argparse
from geotiff_processor.geotiff_handler import Geotiff2epsg4326
def main(zip_path, temp_dir_suffix):
handler = Geotiff2epsg4326(zip_path, temp_dir_suffix)
handler.process()
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Reproject GeoTIFF files in a ZIP archive to EPSG:4326.')
parser.add_argument('zip_path', type=str, help='Path to the ZIP file containing GeoTIFFs.')
parser.add_argument('--suffix', type=str, help='User-defined suffix for the temporary directory.', default='default_suffix')
args = parser.parse_args()
print("Processing file at path:", args.zip_path, "with temporary directory suffix:", args.suffix)
main(args.zip_path, args.suffix)