Large downloads
Estonia’s largest file is 827 MB. A download that size sometimes breaks, and you do not need to repeat all of it.
Resuming
Signed URLs accept Range. curl -C - uses it on its own:
curl -C - -o mullakaart.parquet "<signed-url>"If the URL expired in the meantime, ask for a new one and run the same command:
-C - continues from wherever the local file stopped.
By hand
SOFAR=$(stat -f%z partial.parquet 2>/dev/null || stat -c%s partial.parquet)curl -r "${SOFAR}-" -o rest.parquet "<signed-url>"cat partial.parquet rest.parquet > complete.parquetAlways verify the sha256 afterwards. A badly reassembled file opens fine and
is missing rows.
shasum -a 256 complete.parquetSign with margin
By default a URL lasts one hour. For a large file or a slow connection:
curl -H "x-api-key: $GEOVIS_API_KEY" \ ".../datasets/ee_territorial_mullakaart/download?horas=6"The maximum is 24 hours.
Or do not download at all
For almost any area-based analysis you do not need the whole file: query it over ranges. On the soil map, an area query reads 2.2% of the bytes.