nakijun / qspatialite

Automatically exported from code.google.com/p/qspatialite
0 stars 0 forks source link

Opening new spatialite database takes a lot of time on Ubuntu 32 bit #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure what causes database to init itself so long. What I found out is 
that adding:

h,d=self.executeQuery("Select InitSpatialMetadata()",commit=True)
h,d=self.executeQuery("Select InitSpatialMetadata(1)",commit=True) to your 
Database class really helps. 

Thanks for great peace of code ! 

Original issue reported on code.google.com by gregor.s...@gmail.com on 1 Feb 2015 at 12:33

GoogleCodeExporter commented 9 years ago
Great thanks for this piece of code -> will be added in the next version !

Original comment by romain.r...@gmail.com on 6 Feb 2015 at 7:54