From 1ad145579699156aa3d22ac943140bd9f4b9cb95 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 15 Apr 2024 11:47:22 +0200 Subject: [PATCH] Doc: SetIgnoredFields(): clarify interaction with SetAttributeFilter() Fixes #9655 --- ogr/ogrsf_frmts/ogrsf_frmts.dox | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ogr/ogrsf_frmts/ogrsf_frmts.dox b/ogr/ogrsf_frmts/ogrsf_frmts.dox index d15c60b20d28..0d32a30a69b5 100644 --- a/ogr/ogrsf_frmts/ogrsf_frmts.dox +++ b/ogr/ogrsf_frmts/ogrsf_frmts.dox @@ -3147,6 +3147,10 @@ form depending on the limitations of the format driver. By default, no fields are ignored. + Note that fields that are used in an attribute filter should generally not be set as + ignored fields, as most drivers (such as those relying on the OGR SQL engine) + will be unable to correctly evaluate the attribute filter. + This method is the same as the C function OGR_L_SetIgnoredFields() @param papszFields an array of field names terminated by NULL item. If NULL is passed, the ignored list is cleared. @@ -3167,6 +3171,10 @@ form depending on the limitations of the format driver. By default, no fields are ignored. + Note that fields that are used in an attribute filter should generally not be set as + ignored fields, as most drivers (such as those relying on the OGR SQL engine) + will be unable to correctly evaluate the attribute filter. + This method is the same as the C++ method OGRLayer::SetIgnoredFields() @param hLayer handle to the layer