Skip to content

Commit

Permalink
Code -> Kode
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornreppen committed Jan 2, 2020
1 parent abf9f6d commit 15a77ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stages/transform/03_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ function map(srcPath, navn) {
"versjonid"
];

const key = Object.keys(src).find(x=>x.indexOf(navn)>=0)
const key = Object.keys(src).find(x => x.indexOf(navn) >= 0);
const geo = src[key];
geo.features.forEach(f => {
const props = f.properties;
scrub.forEach(key => delete props[key]);
json.moveKey(props, "fylkesnummer", "autorkode");
json.moveKey(props, "kommunenummer", "autorkode");
props.navn = mapNavn(props.navn);
props.code = "AO-TO-FL-" + addDash(props.autorkode);
props.kode = "AO-TO-FL-" + addDash(props.autorkode);
});
const dstPath = navn + ".geojson";
io.skrivDatafil(dstPath, geo);
Expand Down

0 comments on commit 15a77ba

Please sign in to comment.