[Gdal-dev] Limit columns returned in OGR?
Frank Warmerdam
warmerdam at pobox.com
Wed Jun 28 21:48:17 EDT 2006
Craig Miller wrote:
> Is there a way to limit the columns that are returned with a layer other
> than using OGRDataSource::ExecuteSQL(...)?
>
> E.g.
> OGRDatasource::GetLayer() allows me to set the SQL FROM clause to a single
> table.
> OGRLayer::SetAttributeFilter allows me to set the SQL WHERE clause.
> I don't see it, but I thought I'd ask before I code something using
> ExecuteSQL()... Is it possible to set the SQL SELECT clause?
Craig,
There is no mechanism other than ExecuteSQL() to select only a subset
of columns from a layer/table within OGR.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list