... | ... | @@ -40,12 +40,21 @@ Parsing the datacubes file, we extract datacube ids for this category and retrie |
|
|
curl "https://www-genesis.destatis.de/genesisWS/web/ExportService_2010?method=DatenAufbau&kennung={USER_NAME}&passwort={PASSWORD}&namen={DATACUBE_CODE}&bereich=Alle&sprache=en" -o {CAT}/{DATACUBE_CODE}.structure.xml
|
|
|
```
|
|
|
|
|
|
and datacube value file:
|
|
|
datacube value file:
|
|
|
|
|
|
```
|
|
|
curl "https://www-genesis.destatis.de/genesisWS/web/ExportService_2010?method=DatenExport&kennung={USER_NAME}&passwort={PASSWORD}&namen={DATACUBE_CODE}&bereich=Alle&format=csv&werte=true&metadaten=false&zusatz=false&startjahr=&endjahr=&zeitscheiben=&inhalte=®ionalmerkmal=®ionalschluessel=&sachmerkmal=&sachschluessel=&sachmerkmal2=&sachschluessel2=&sachmerkmal3=&sachschluessel3=&stand=&sprache=en" -o {CAT}/{DATACUBE_CODE}.xml
|
|
|
```
|
|
|
|
|
|
Some datacube value file failed to download. Look for `<inhalt>An error has occured.</inhalt>` in the file content.
|
|
|
|
|
|
|
|
|
attribute info file (attribute code are extracted from datacube value file)
|
|
|
|
|
|
```
|
|
|
curl https://www-genesis.destatis.de/genesisWS/web/ExportService_2010?method=AuspraegungInformation&kennung={USER_NAME}&passwort={PASSWORD}&name={ATT_CODE}&bereich=Alle&sprache=en" -o att.{ATT_CODE}.xml
|
|
|
```
|
|
|
|
|
|
## Convert
|
|
|
|
|
|
Gets all unique unit values from structure xml files:
|
... | ... | |