Prefer persisted sources in map federation
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-19 02:08:52 +02:00
parent a823342b5b
commit 5f15753247
8 changed files with 96 additions and 21 deletions
@@ -1,6 +1,7 @@
import { describe, expect, it } from 'vitest'
import {
bboxesEqual,
isSelectionBoundedDataset,
normalizeBboxFromCorners,
parseBboxInput,
productCoversZones,
@@ -63,4 +64,18 @@ describe('map workspace selection guards', () => {
expect(productCoversZones(['wallonia'], ['flanders', 'wallonia'])).toBe(true)
expect(productCoversZones(['brussels'], ['wallonia'])).toBe(false)
})
it('distinguishes selection-bounded acquisitions from reusable regional datasets', () => {
expect(isSelectionBoundedDataset({
geometry_clipped_to_selection: true,
bbox_epsg4326: [4.55, 50.58, 4.56, 50.59],
})).toBe(true)
expect(isSelectionBoundedDataset({
geometry_clipped_to_selection: false,
bbox_epsg4326: [2.5, 49.5, 6.4, 51.6],
})).toBe(false)
expect(isSelectionBoundedDataset({
geometry_clipped_to_selection: true,
})).toBe(false)
})
})