[gdal-dev] RFC 29: OGR Set Desired Fields

Tamas Szekeres szekerest at gmail.com
Fri Jul 30 10:29:38 EDT 2010


2010/7/30 Frank Warmerdam <warmerdam at pobox.com>

>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100730/d243da4c/attachment.html


More information about the gdal-dev mailing list