Skip to content

Commit

Permalink
chore: clean up world and round to 3 decimals (#6963)
Browse files Browse the repository at this point in the history
  • Loading branch information
VIKTORVAV99 authored Jul 16, 2024
1 parent 4182e93 commit 67ca551
Show file tree
Hide file tree
Showing 3 changed files with 11,079 additions and 11,736 deletions.
3 changes: 3 additions & 0 deletions config/zones/GI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
timezone: Europe/Gibraltar
region: Europe
country: GI
6 changes: 3 additions & 3 deletions web/geo/generateWorld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ const aggregates = generateAggregates(worldFC, config.zones);

worldFC.features = aggregates;

// Rounds coordinates to 4 decimals
// Rounds coordinates to 3 decimals
coordEach(worldFC, (coord) => {
coord[0] = round(coord[0], 4);
coord[1] = round(coord[1], 4);
coord[0] = round(coord[0], 3);
coord[1] = round(coord[1], 3);
});

const { skipped } = generateTopojson(worldFC, GEO_CONFIG);
Expand Down
Loading

0 comments on commit 67ca551

Please sign in to comment.