[gdal-dev] Optimizing access to shapefiles

Ragi Burhum ragi at burhum.com
Mon Jul 19 14:19:18 EDT 2010


On Mon, Jul 19, 2010 at 10:54 AM, Frank Warmerdam <warmerdam at pobox.com>wrote:

> Ragi Burhum wrote:
>
>> Would it make sense instead of implementing a SetDesiredFields(..) to
>> implement a SetSubFields(string fieldnames) where the function
>> takes a comma delimited list of subfields and then those are parsed by the
>> shapefile driver to find out which field values to fetch? That way, for
>> other drivers that have a SQL based underlying datastore, the way they would
>> implement that fetching behavior would be by putting that content between
>> the SELECT and the FROM portion.
>>
>
> Ragi,
>
> I don't get the distinction here.  Why can't the RDBMS based providers
> just construct their SELECT clause based on the names of the fields
> selected with SetDesiredFields()?


They could. I just though just pushing the string directly would be easier
from an API point of view and from an implementation perspective. Maybe it
is just personal preference and I am mistaken.

Thanks,

- Ragi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100719/32cfc64e/attachment.html


More information about the gdal-dev mailing list