Skip to content

Commit

Permalink
updated stats
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Oct 8, 2023
1 parent f4dcb12 commit 0dfa38e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stats/stats.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import load from "../load";
import parse from "../parse";
import stats from "./stats.module";

serve({ debug: true, max: 26, port: 3000, wait: 240 });
serve({ debug: true, max: 30, port: 3000, wait: 240 });

const url = "http://localhost:3000/data/test.tiff";

Expand Down Expand Up @@ -58,8 +58,8 @@ const EXPECTED_BBOX_STATS = [

const EXPECTED_POLYGON_STATS = [
{
count: 1672, // rasterstats says 1672
invalid: 0, // expected because geoblaze ignores no data values (but maybe this isn't ideal?)
count: 1722,
invalid: 50,
max: 7807.4,
mean: 1853.7104066985623,
median: 1637.35,
Expand All @@ -70,7 +70,7 @@ const EXPECTED_POLYGON_STATS = [
range: 7807.4,
std: 1507.3255322956486,
sum: 3_099_403.799999996, // rasterstats says 3,099,403.8
valid: 1672,
valid: 1672, // same as rasterstats
variance: 2_272_030.2603103607
}
];
Expand Down

0 comments on commit 0dfa38e

Please sign in to comment.