Skip to content

Commit

Permalink
Added basemap & basic dictionary for Allemagne on level NUTS-1.
Browse files Browse the repository at this point in the history
  • Loading branch information
mukil committed Feb 27, 2017
1 parent c10cf0d commit fbf26ca
Show file tree
Hide file tree
Showing 10 changed files with 302 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/locales/de/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ export default {
"france reg 2016": "Frankreich > Regionen (2016)",
"spain prov 2015": "Spanien > Provinzen (2015)",
"spain auto 2015": "Spanien > Gemeinden (2015)",
"german states 2016": "Deutschland > Länder (2016)",
"german districts 2016": "Deutschland > Landkreise (2016)",
"us state 2015": "USA > Staaten (2015)",
"eu nuts-2 2013": "Europa (2013)"
},
Expand Down
2 changes: 2 additions & 0 deletions app/locales/en/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ export default {
"france reg 2016": "France > regions (2016)",
"spain prov 2015": "Spain > provinces (2015)",
"spain auto 2015": "Spain > communities (2015)",
"german states 2016": "Germany > States (2016)",
"german districts 2016": "Germany > Districts (2016)",
"us state 2015": "United States > States (2015)",
"eu nuts-2 2013": "Europe 2013"
},
Expand Down
2 changes: 2 additions & 0 deletions app/locales/fr/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ export default {
"france reg 2016": "France > régions (2016)",
"spain prov 2015": "Espagne > provinces (2015)",
"spain auto 2015": "Espagne > communautés (2015)",
"german states 2016": "Allemagne > Land (2016)",
"german districts 2016": "Allemagne > Arrondissement (2016)",
"us state 2015": "États-Unis > États (2015)",
"eu nuts-2 2013": "Europe 2013"
},
Expand Down
98 changes: 98 additions & 0 deletions public/data/dictionary/DE-BKG-NUTS1-2016.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
[
{
"ADE": "2",
"RS": "01",
"RS_0": "010000000000",
"Name_DE": "Schleswig-Holstein"
},
{
"ADE": "2",
"RS": "02",
"RS_0": "020000000000",
"Name_DE": "Hamburg"
},
{
"ADE": "2",
"RS": "03",
"RS_0": "030000000000",
"Name_DE": "Niedersachsen"
},
{
"ADE": "2",
"RS": "04",
"RS_0": "040000000000",
"Name_DE": "Bremen"
},
{
"ADE": "2",
"RS": "05",
"RS_0": "050000000000",
"Name_DE": "Nordrhein-Westfalen"
},
{
"ADE": "2",
"RS": "06",
"RS_0": "060000000000",
"Name_DE": "Hessen"
},
{
"ADE": "2",
"RS": "07",
"RS_0": "070000000000",
"Name_DE": "Rheinland-Pfalz"
},
{
"ADE": "2",
"RS": "08",
"RS_0": "080000000000",
"Name_DE": "Baden-Württemberg"
},
{
"ADE": "2",
"RS": "09",
"RS_0": "090000000000",
"Name_DE": "Bayern"
},
{
"ADE": "2",
"RS": "10",
"RS_0": "100000000000",
"Name_DE": "Saarland"
},
{
"ADE": "2",
"RS": "11",
"RS_0": "110000000000",
"Name_DE": "Berlin"
},
{
"ADE": "2",
"RS": "12",
"RS_0": "120000000000",
"Name_DE": "Brandenburg"
},
{
"ADE": "2",
"RS": "13",
"RS_0": "130000000000",
"Name_DE": "Mecklenburg"
},
{
"ADE": "2",
"RS": "14",
"RS_0": "140000000000",
"Name_DE": "Sachsen"
},
{
"ADE": "2",
"RS": "15",
"RS_0": "150000000000",
"Name_DE": "Sachsen-Anhalt"
},
{
"ADE": "2",
"RS": "16",
"RS_0": "160000000000",
"Name_DE": "Thüringen"
}
]
17 changes: 17 additions & 0 deletions public/data/dictionary/csv/DE-BKG-NUTS1-2016.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ADE,RS,RS_0,GEN_DE
2,02,020000000000,Hamburg
2,03,030000000000,Niedersachsen
2,04,040000000000,Bremen
2,05,050000000000,Nordrhein-Westfalen
2,06,060000000000,Hessen
2,07,070000000000,Rheinland-Pfalz
2,08,080000000000,Baden-Württemberg
2,09,090000000000,Bayern
2,10,100000000000,Saarland
2,11,110000000000,Berlin
2,12,120000000000,Brandenburg
2,13,130000000000,Mecklenburg-Vorpommern
2,14,140000000000,Sachsen
2,15,150000000000,Sachsen-Anhalt
2,16,160000000000,Thüringen
2,01,010000000000,Schleswig-Holstein
78 changes: 78 additions & 0 deletions public/data/map/DE-2016/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@

## Preparing open geodata for use in Khartis

It seems like using [mapshaper.org](https://mapshaper.org) is the most simple way to prepare and integrate the three geometries making up a basemap in Khartis.

The transformation process i initially used is a bit different and could be roughly outlined with:

+ Shapefile > GeoJSON (e.g. via QGIS _Vector Layer_ specific features)<br/>
(Vector > Geometry Tools > Centroid layer (Polygonschwerpunkte))
+ Creating a GeoJSON 'Centroid' Layer (using QGIS _Vector_ specific geometry tools and layer export)
+ Creating a GeoJSON 'Border' Layer (again using QGIS _Vector_ specific geometry tools and layer export)
+ GeoJSON > TopoJSON (e.g. `npm install -g topojson-server` & running `geo2topo `)
+ TopoJSON Optimizations (see Mike Bostock's [Command Line Cartography 3](https://medium.com/@mbostock/command-line-cartography-part-3-1158e4c55a1e#.2o7ol97d9))

### Khartis Basemap Requirements

It is recommended to use the tool [mapshaper.org](https://mapshaper.org) to combine a _border_, a _centroid_ and the _poly_ layers into one TopoJSON file. To convert the GeoJSON `geometries` i got from QGis to TopoJSON i used the `geo2topo` tool. But please note, this can all be done through only using mapshaper.org.

`geo2topo -q 1e4 vg2500.utm32s.shape/vg2500/vg2500-lan_geojson.geojson > bkg-vg2500-lan-utm32s-1e4-poly.json`

To create thee dedicated _centroid_ and _border_ layers i also [used QGIS](http://gis.stackexchange.com/questions/45243/how-to-determine-the-centroid-of-polygons) and inserting the resulting topojson manually as a new layer in the original file using a Sublime Text Editor.

To link up data values with the respective polygons in the basemap geometry you must make sure that your final `.json` document contains identifiers (or keys) for the region it represents.

### Khartis Basemap Dictionary

To allow users displaying labels for each region in the map you must provide an international set of names for each of the regional identifiers contained in your basemap. At Khartis this is called the _dictionary_ of a basemap.

+ Write JSON Dictionary containing all keys and a set of international places names (manually)
+ Write CSV-File of Dictionary allowing users to "Download the Model" (manually)

I added two types of data both geometries representing administrative regions (in their boundaries).

(A) is the level of 16 federal states ("Länder"), (B) is the more detailed level of departments ("Kreise").

#### (A) Ländergrenzen ("bkg-vg2500-lan-utm32s-1e4.json") Geometrie (States in Germany)

`properties: {"ADE":2,"RS":"03","RS_0":"030000000000","GEN":"Niedersachsen"}`

The key `RS` stands for Regionalschlüssel, meaning "Region Key".
The key `GEN_DE` stands for german "Geographical Name" for the region

#### (B) Kreisgrenzen ("bkg-vg2500-krs-utm32s-1e4.json") Geometrie (States in Germany)

`properties: {"ADE":4,"RS":"01002","RS_0":"010020000000","GEN":"Kiel"}`

Again, the key `RS` stands for Regionalschlüssel, meaning "Region Key".
The key `GEN_DE` stands for german "Geographical Name" for the region

## License: Usage rights

### Länder (Federal States of Germany, Level: NUTS 1, Overall Count: 16)

Quelle der Ausgangsdatei für "vg2500-BKG-NUTS1-2016-combined.json" ist die Seite des Bundesamts für Kartographie und Geodäsie unter ([http://www.geodatenzentrum.de/geodaten/](http://www.geodatenzentrum.de/geodaten/gdz_rahmen.gdz_div?gdz_spr=deu&gdz_akt_zeile=5&gdz_anz_zeile=1&gdz_unt_zeile=19&gdz_user_id=0)).

### Kreise (Districts of Germany, Level: NUTS 3, Overall Count: 402)

Quelle der Ausgangsdatei für "vg2500-BKG-NUTS3-2016-combined.json" ist die Seite des Bundesamts für Kartographie und Geodäsie unter ([http://www.geodatenzentrum.de/geodaten/](http://www.geodatenzentrum.de/geodaten/gdz_rahmen.gdz_div?gdz_spr=deu&gdz_akt_zeile=5&gdz_anz_zeile=1&gdz_unt_zeile=19&gdz_user_id=0)).

The geodata is published as open data by the BKG but in each map using it must be properly attributed.
If desiging a map based on this geometry the final product must note that it uses the geometry published by like **© GeoBasis-DE / BKG 2016**.

Wherever possible (e.g. the SVG is published as interactive web document and is not printed) the word _GeoBasis-DE_ should point users to [http://www.geodatenzentrum.de/geodaten/](http://www.geodatenzentrum.de/geodaten/).

What follows is a quote from the original publication documentation explaining exactly this (but in German).

<code>
3. Nutzungsbestimmungen und Quellennachweis

Dieser Datenbestand steht über Geodatendienste gemäß Geodatenzugangsgesetz für die kommerzielle und nicht kommerzielle Nutzung geldleistungsfrei zum Download und zur Online-Nutzung zur Verfügung. Die Nutzung der Geodaten und Geodatendienste wird durch die Verordnung zur Festlegung der Nutzungsbestimmungen für die Bereitstellung von Geodaten des Bundes (GeoNutzV) vom 19. März 2013 (Bundesgesetzblatt Jahrgang 2013 Teil I Nr. 14) geregelt.

Insbesondere hat jeder Nutzer den Quellenvermerk zu allen Geodaten, Metadaten und Geodatendiensten erkennbar und in optischem Zusammenhang zu platzieren. Veränderungen, Bearbeitungen, neue Gestaltungen oder sonstige Abwandlungen sind mit einem Veränderungshinweis im Quellenvermerk zu versehen.

Quellenvermerk und Veränderungshinweis sind wie folgt zu gestalten. Bei der Darstellung auf einer Webseite ist der Quellenvermerk mit der URL "[http://www.bkg.bund.de](http://www.bkg.bund.de)" zu verlinken.

© GeoBasis-DE / BKG <Jahr des letzten Datenbezugs>
© GeoBasis-DE / BKG <Jahr des letzten Datenbezugs> (Daten verändert)
</code>
23 changes: 23 additions & 0 deletions public/data/map/DE-2016/geojson/vg2500-BKG-NUTS1-2016.geojson

Large diffs are not rendered by default.

Loading

0 comments on commit fbf26ca

Please sign in to comment.