landkreise
This commit is contained in:
1
additional/landkreise_simple200a.geojson
Normal file
1
additional/landkreise_simple200a.geojson
Normal file
File diff suppressed because one or more lines are too long
@@ -1,24 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
node nuts_replace.js
|
||||||
jq -c 'def walk(f):
|
jq -c '{type: .type , features: [ .features[]| select( .properties.GF == 4) ] }' landkreise_simple200.geojson > landkreise_simple200a.geojson
|
||||||
. as $in
|
|
||||||
| if type == "object" then
|
|
||||||
reduce keys[] as $key
|
|
||||||
( {}; . + { ($key): ($in[$key] | walk(f)) } ) | f
|
|
||||||
elif type == "array" then map( walk(f) ) | f
|
|
||||||
else f
|
|
||||||
end;
|
|
||||||
|
|
||||||
def mapper(f):
|
|
||||||
if type == "array" then map(f)
|
|
||||||
elif type == "object" then
|
|
||||||
. as $in
|
|
||||||
| reduce keys[] as $key
|
|
||||||
({};
|
|
||||||
[$in[$key] | f ] as $value
|
|
||||||
| if $value | length == 0 then .
|
|
||||||
else . + {($key): $value[0]} end)
|
|
||||||
else .
|
|
||||||
end;
|
|
||||||
|
|
||||||
walk( mapper(select((type == "object" and .properties.admin_level == "5") | not)) )' < Germany_AL4-AL6.GeoJson > G4+6.geojson
|
|
||||||
2
dist/autoloader.js
vendored
2
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Tue Jan 22 2019 18:22:39 GMT+0100 (CET)*/
|
/*Generated on:Tue Jan 22 2019 20:15:47 GMT+0100 (CET)*/
|
||||||
var AutomaticDispose_Branch = "master";
|
var AutomaticDispose_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
var da_lss_adis_time = new Date().getTime();
|
||||||
|
|||||||
2
dist/autoloaderV2.js
vendored
2
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Tue Jan 22 2019 18:22:39 GMT+0100 (CET)*/
|
/*Generated on:Tue Jan 22 2019 20:15:47 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
|
|||||||
Reference in New Issue
Block a user