3 * Takes several geojson files and combines them into a single one.
5 * @author Christian Weiske <cweiske@cweiske.de>
14 err("combine-geojson.php <files>");
21 'type' => 'FeatureCollection',
25 foreach ($files as $file) {
26 $combined['features'][] = json_decode(file_get_contents($file));
29 echo json_encode($combined, JSON_PRETTY_PRINT) . "\n";