[gdal-dev] Multiple layers in OGRDataSource

Olivier Tournaire olitour at gmail.com
Mon Apr 7 15:51:24 EDT 2008


I read the OGR documentation OGR API Tutorial, and I found this sentence :

" An OGRDataSource <http://www.gdal.org/ogr/classOGRDataSource.html> can
potentially have many layers associated with it"

However, I cannot find the way to add multiple layers in one instance of
OGRDataSource. What I would like to do is to read a set of shapefiles,
create a layer for each of them and store them in an OGRDataSource object.
Note I also want to be able to create an OGRDataSource object and add layers
(from shapefiles) in a second time. Could you please give me the way to do
such a task ?

Regards,

Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080407/b4c2a117/attachment.html


More information about the gdal-dev mailing list