Skip to content

Commit

Permalink
Grid bench: generated cells are now slightly scaled down to avoid pot…
Browse files Browse the repository at this point in the history
…ential corner cases due to touching edges
  • Loading branch information
Aklakan committed Mar 8, 2024
1 parent 99ec212 commit 98687b0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ public Integer call() throws Exception {

Stream<Quad> quads =
IntStream.range(0, graphs).boxed().flatMap(g -> {
double ratio = scale ? 1 - g / (double)graphs : 1.0;
double ratioBase = scale ? 1 - g / (double)graphs : 1.0;
// Always make cells a bit smaller to avoid corner cases with touching envelopes
double ratio = 0.95 * ratioBase;
Node graph = NodeFactory.createURI(genGraphName(g));
return grid.stream().flatMap(cell -> {
Node feature = NodeFactory.createURI("https://www.example.org/feature/" + g + "/" + cell.row() + "/" + cell.col());
Expand Down

0 comments on commit 98687b0

Please sign in to comment.