Read-only mirror of https://github.com/swiss-territorial-data-lab/swisstopo-interlis-update — Swiss Territorial Data Lab. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Huriel Reichel 7d88b18c89 small mistakes
2021-01-21 10:12:38 +01:00
.Rhistory updating copyrights 2020-11-04 14:49:26 +01:00
README.md Updating dependecies 2020-12-18 16:34:47 +01:00
swisstopo_interlis_update.R small mistakes 2021-01-21 10:12:38 +01:00

swisstopo INTERLIS updates

Swisstopo has the INTERLIS dataset of many cantons in Switzerland, though we want to keep track of updates and run change detection algorithms with this data in a spatio-temporal perspective. This code is a simple way of keeping track of the updates being made by swisstopo in the INTERLIS data.

If there are updates it is able to check on its amount and then write the txt files containing only the links to use with wget.

Pay close attention to input and output folders, as the idea of versioning demands the files not to be overwritten. It is important that the meta.txt file taken from the swisstopo server is also saved in the new backup folder for frequent comparisons.

wget

After the txt files are written, simple do the following to download (remember to be in the desired folder with cd):

$ wget -i meta_only_links_TG.txt
$ wget -i meta_only_links_GE.txt

Copyright and License

csv-wkt-to-uv3 - Nils Hamel, Huriel Reichel
Copyright (c) 2020 Republic and Canton of Geneva

This program is licensed under the terms of the GNU GPLv3. Documentation and illustrations are licensed under the terms of the CC BY-NC-SA.

Dependencies

R 3.6.3 or superior and any IDE to run the code, usually RStudio or Emacs.

No CRAN or standalone packages are necessary, only R base.