From d82cfc40c8d1e8dbe965fa191c8ff747b4322a49 Mon Sep 17 00:00:00 2001
From: Anthony Borghi <anthony.borghi@veremes.com>
Date: Fri, 8 Jun 2018 12:10:43 +0200
Subject: [PATCH] retouche filtre dernier exemple pour le simplifier

---
 administration/guide_developpeur/filtres_couches.md | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/administration/guide_developpeur/filtres_couches.md b/administration/guide_developpeur/filtres_couches.md
index dc2ca55..692d578 100644
--- a/administration/guide_developpeur/filtres_couches.md
+++ b/administration/guide_developpeur/filtres_couches.md
@@ -209,17 +209,19 @@ Ce code créer un instance pour surveiller les chagement des champs dates (**$wa
 
 ### d - Intégration du filtre dans la couche MapServer
 
+J'utilise par défaut 0 pour tous les champs, mais il est possible d'utiliser 0 pour les minimums et une valeur équivalente au timestamp du 01/01/3000 pour les maximums.
+
 ```
-	FILTER (([mstmstp_date_debut_travaux] < '%travaux_date_max%' or [mstmstp_date_fin_travaux] < '%travaux_date_max%' or '%travaux_date_max%' = '0') and ([mstmstp_date_debut_travaux] < '%travaux_date_min%' or [mstmstp_date_fin_travaux] < '%travaux_date_min%' or '%travaux_date_min%' = '0') and ([mstmstp_creation_date] < '%travaux_date_max%' or '%travaux_date_max%' = '0') and ([mstmstp_creation_date] > '%creation_date_min%' or '%creation_date_min%' = '0'))
+	FILTER (([mstmstp_date_debut_travaux] < '%travaux_date_max%' or [mstmstp_date_fin_travaux] < '%travaux_date_max%') and ([mstmstp_date_debut_travaux] < '%travaux_date_min%' or [mstmstp_date_fin_travaux] < '%travaux_date_min%') and ([mstmstp_creation_date] < '%travaux_date_max%') and ([mstmstp_creation_date] > '%creation_date_min%'))
 
     VALIDATION
         'creation_date_max' '^[0-9]{1,}$'
         'creation_date_min' '^[0-9]{1,}$'
         'travaux_date_max' '^[0-9]{1,}$'
         'travaux_date_min' '^[0-9]{1,}$'
-        'default_creation_date_max' '0'
+        'default_creation_date_max' '10000000000000000000000000'
         'default_creation_date_min' '0'
-        'default_travaux_date_max' '0'
+        'default_travaux_date_max' '10000000000000000000000000'
         'default_travaux_date_min' '0'
     END
 
-- 
GitLab