2010/7/30 Frank Warmerdam <[email protected]>

>
> I do not agree with applications directly changing the OGRFieldDefn, even
> if ultimately the flag is stored here.  There needs to be a virtual method
> on the OGRLayer (IMHO) so that drivers have an opportunity to hook the
> method to do something special when the list of desired fields changes.
>
>
I agree with this approach if I understood correctly, that the flags would
be stored in OGRFieldDefn/OGRFeatueDefn and would be set by a single virtual
method in OGRLayer which could continue to be:

virtual OGRErr OGRLayer::SetIgnoredFields( const char **papszFields );


With the assumption that the fields are identified by name and not by the
position in the array.


Best regards,

Tamas
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to