Update ufo example data

Downloaded a newer version of the data from
https://www.kaggle.com/datasets/NUFORC/ufo-sightings?select=scrubbed.csv
and fixed the remaining errors in it.
This commit is contained in:
Maximilian Krög
2022-05-26 20:11:40 +02:00
parent 599257a144
commit 03f3e619f2
2 changed files with 662 additions and 668 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -124,12 +124,6 @@ client.onload = function () {
prevIndex = curIndex + 1;
const coords = fromLonLat([parseFloat(line[5]), parseFloat(line[4])]);
// only keep valid points
if (isNaN(coords[0]) || isNaN(coords[1])) {
continue;
}
const shape = line[2];
shapeTypes[shape] = (shapeTypes[shape] ? shapeTypes[shape] : 0) + 1;
shapeTypes['all']++;