From c134e14ec0a7dc614a4d918379184faaa3270d1d Mon Sep 17 00:00:00 2001 From: Gwadaking Date: Tue, 14 Apr 2026 01:48:39 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20tiles=20filtr=C3=A9es=20sur=20coverage?= =?UTF-8?q?=5Farea=20>=200=20au=20lieu=20de=20afai=5Fmean=20>=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/Command/GenerateTilesCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/Command/GenerateTilesCommand.php b/backend/src/Command/GenerateTilesCommand.php index d9063eb..710b8e9 100644 --- a/backend/src/Command/GenerateTilesCommand.php +++ b/backend/src/Command/GenerateTilesCommand.php @@ -63,10 +63,10 @@ class GenerateTilesCommand extends Command private function queryObservationsGeoJSON(): ?string { $rows = $this->connection->fetchAllAssociative( - "SELECT ST_AsGeoJSON(geometry) AS geometry, afai_mean AS afai + "SELECT ST_AsGeoJSON(geometry) AS geometry, COALESCE(afai_mean, 0) AS afai FROM sargassum_observation WHERE detected_at >= NOW() - INTERVAL '30 days' - AND afai_mean > 0 + AND coverage_area > 0 ORDER BY detected_at DESC" );