Skip to main content

Hi,

I want to automate the process of downloading a dataset that comes as a zipped folder. Inside the folder, there is a GeoTIFF file that I want to read into FME. After that, I want to write it to a new GeoTIFF file, which should automatically update when the dataset is updated.

What is the simplest way to do this?

The file i want to work with is this: https://ext-dokument.lansstyrelsen.se/sodermanland/Geodata/Gron_infrastruktur/LstD_GI_Ädellöv_int.zip

Hi ​@fannyagren ,

I think you can download and save the zip file into the disk system of your local machine with HTTPCaller and then read the GeoTIFF dataset in the downloaded zip file with FeatureReader (Format: GeoTIFF), since GeoTIFF reader has the ability to extract and read GeoTIFF datasets archived whthin a zip file. You can then use GeoTIFF writer to write the dataset.

Creator > HTTPCaller > FeatureReader (Format: GeoTIFF) > GeoTIFF Writer

Alternatively, if you just need to save the GeoTIFF file archived in the zip file into somewhere without any transformation, you can extract the zip file downloaded by HTTPCaller and get the extracted GeoTIFF file path with FeatureReader (Format: PATH), since PATH reader has the ability to extract files from a zip file by handling the zip as a folder-like thing. You can then use File Copy writer to copy or move the extracted GeoTIFF file to a location.

Creator > HTTPCaller > FeatureReader (Format: PATH) > File Copyt Writer