mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
docs: address maintainer review for PR #1044
This commit is contained in:
1 parent
8b68ff8412
commit
5a14a06a52
2 files changed
+11
-10
No files matched your search
@@ -1429,6 +1429,8 @@ accessible name remains "Don't show this again". Control behavior is unchanged.
|
|||||||
|
|
||||||
## FIRMS source status
|
## FIRMS source status
|
||||||
|
|
||||||
|
FIRMS ingestion and adaptation require explicit finite coordinates within WGS84 ranges; genuine zero coordinates remain valid and admitted detection indices stay sequential.
|
||||||
|
|
||||||
The FIRMS proxy records source success after appending its rows. If aggregation
|
The FIRMS proxy records source success after appending its rows. If aggregation
|
||||||
throws, that source reports failure without a contradictory success entry.
|
throws, that source reports failure without a contradictory success entry.
|
||||||
The existing per-record append continues to support large feeds; sequential
|
The existing per-record append continues to support large feeds; sequential
|
||||||
@@ -5326,8 +5328,3 @@ datacenters, dams and the Nepal locator retain that shared credit while displaye
|
|||||||
|
|
||||||
Military fragments stitch by source identity. Different mapped parcels merge only
|
Military fragments stitch by source identity. Different mapped parcels merge only
|
||||||
when their footprints touch or contain one another, never across a seam tolerance gap.
|
when their footprints touch or contain one another, never across a seam tolerance gap.
|
||||||
|
|
||||||
|
|
||||||
### fix(firms): reject missing and out-of-range detection coordinates
|
|
||||||
|
|
||||||
Require explicit numeric coordinate evidence and WGS84 ranges in both ingestion paths, preserving genuine zero coordinates and sequential admitted detection indices.
|
|
||||||
@@ -22,11 +22,8 @@ export function adaptFirmsRecords(records) {
|
|||||||
const lat = Number(record?.lat);
|
const lat = Number(record?.lat);
|
||||||
const lon = Number(record?.lon);
|
const lon = Number(record?.lon);
|
||||||
if (
|
if (
|
||||||
![record?.lat, record?.lon].every(
|
!hasCoordinateValue(record?.lat) ||
|
||||||
(value) =>
|
!hasCoordinateValue(record?.lon) ||
|
||||||
typeof value === 'number' ||
|
|
||||||
(typeof value === 'string' && value.trim() !== ''),
|
|
||||||
) ||
|
|
||||||
!Number.isFinite(lat) ||
|
!Number.isFinite(lat) ||
|
||||||
!Number.isFinite(lon) ||
|
!Number.isFinite(lon) ||
|
||||||
Math.abs(lat) > 90 ||
|
Math.abs(lat) > 90 ||
|
||||||
@@ -121,3 +118,10 @@ function finiteNumber(value) {
|
|||||||
const number = Number(value);
|
const number = Number(value);
|
||||||
return Number.isFinite(number) ? number : 0;
|
return Number.isFinite(number) ? number : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hasCoordinateValue(value) {
|
||||||
|
return (
|
||||||
|
typeof value === 'number' ||
|
||||||
|
(typeof value === 'string' && value.trim() !== '')
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user