Created
December 3, 2014 22:29
-
-
Save Barttje/c65bbbad94fcc99a663f to your computer and use it in GitHub Desktop.
Boem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
var polys = JSON.parse(fs.readFileSync('cities-geometry.json')) | |
var boem = JSON.parse(fs.readFileSync('groningen.json')) | |
var arr = boem.gmcodes | |
hippeshit2(boem.gmcodes,polys.features) | |
function hippeshit(gmcode,features){ | |
for(i=0;i<features.length;i++){ | |
if(features[i].gm_code == gmcode){ | |
console.log(polys.features[i].gm_naam) | |
} | |
} | |
} | |
function hippeshit2(gmcodes,features){ | |
console.log(gmcodes.length) | |
for(i=0;i<gmcodes.length;i++){ | |
hippeshit(gmcodes[i],polys.features) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment