Skip to content

Commit afd4687

Browse files
committed
Make OSM DB metadata initialization in transaction
1 parent 232a8d7 commit afd4687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/openstreetmap/qgsosmimport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ bool QgsOSMXmlImport::createDatabase()
141141
{
142142
"PRAGMA cache_size = 100000", // TODO!!!
143143
"PRAGMA synchronous = OFF", // TODO!!!
144-
"SELECT InitSpatialMetadata()",
144+
"SELECT InitSpatialMetadata(1)",
145145
"CREATE TABLE nodes ( id INTEGER PRIMARY KEY, lat REAL, lon REAL )",
146146
"CREATE TABLE nodes_tags ( id INTEGER, k TEXT, v TEXT )",
147147
"CREATE TABLE ways ( id INTEGER PRIMARY KEY )",

0 commit comments

Comments
 (0)