diff --git a/administration/guide_developpeur/filtres_couches.md b/administration/guide_developpeur/filtres_couches.md index dc2ca55e8ff0a8de8ac11e8f7c9bd519afce14ab..692d578b1328aa959f312f636c838f5641ca83ee 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