[gdal-dev] OGRDataSource::CopyLayer

Ivan Lucena lucena_ivan at hotmail.com
Tue Jan 28 10:52:26 PST 2014


Hi there,

I have question/suggestion about that method. When it goes though the loop it calls the driver's CreateField several times, depending on the number of columns on the table. In a DBMS environment, at that point the table is already created and the only thing the driver's CreateField() can do is to issue some ALTER TABLE statements. But that is too time consuming. It takes more time than to load geometry in some cases.

Is there a way to pass the field description information to the driver and let it decide to create the table at once with a complete description of the fields?

Best regards,

Ivan




 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140128/5fa66fac/attachment.html>


More information about the gdal-dev mailing list