geocompr icon indicating copy to clipboard operation
geocompr copied to clipboard

Chap. 14 - Broken links to German Census Data

Open travisz09 opened this issue 2 months ago • 5 comments

The data download links in chapter 14.3 (https://tinyurl.com/ybtpkwxz), and 14.9 (https://www.zensus2011.de/SharedDocs/Downloads/DE/Pressemitteilung/DemografischeGrunddaten/csv_Bevoelkerung_100m_Gitter.zip?__blob=publicationFile&v=3) are both broken.

The data in 14.3 can be accessed using the spDataLarge package, as shown in the text, but for the Exercises (14.9) there is no convenient way to find the referenced dataset. It does not appear to be included in the spDataLarge package, and it is not clear what the dataset contains, so I am not able to search for it on the census website.

travisz09 avatar Oct 18 '25 19:10 travisz09

@travisz09 thanks for reporting the problem.

@jannes-m could you take a look at this issue?

Nowosad avatar Oct 19 '25 08:10 Nowosad

Sure, I'll do that. The problem is probably that new census data has been released in the meantime. But I'll have a look.

jannes-m avatar Oct 19 '25 19:10 jannes-m

We could upload the old data as a GitHub release as a quick fix.

Robinlovelace avatar Oct 20 '25 08:10 Robinlovelace

The 100m census grid data was more than 1GB in size.

jannes-m avatar Oct 20 '25 08:10 jannes-m

This is the old data. Unfortunately, they have now split up the different variables into different files.

Since the new data (from 2022; https://www.destatis.de/DE/Themen/Gesellschaft-Umwelt/Bevoelkerung/Zensus2022/_publikationen.html?nn=1391172#1403950) comes also in multiple files, the best idea would probably be to adjust the code to use the new data. I can do this but probably not this week.

Anyways, the only difference between using the data with the 100m and 1km resolution, is in fact just the relolution. Hence, if you would like to work through the code, please use the 1km resolution from the spDataLarge package for now.

jannes-m avatar Oct 20 '25 08:10 jannes-m