Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
eyr1n committed Sep 19, 2024
1 parent b88019f commit a833c16
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const features = (
return GeoJSON.parse(geojson);
}),
)
).filter((geojson) => geojson.properties.children.length > 0);
).filter((feature) => feature.properties.children.length > 0);

await writeFile(
join(import.meta.dirname, 'public/buildings.geojson'),
Expand All @@ -44,14 +44,3 @@ await writeFile(
features,
}),
);

/* const map = await fs
.readFile(path)
.then((res) => res.toString())
.then((res) => JSON.parse(res));
await fs.writeFile(
'src/assets/result.json',
JSON.stringify(Object.fromEntries(await create_map(map.buildings))),
);
*/

0 comments on commit a833c16

Please sign in to comment.