Skip to content

Commit

Permalink
Make OSM DB metadata initialization in transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy committed May 28, 2014
1 parent 232a8d7 commit afd4687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/openstreetmap/qgsosmimport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ bool QgsOSMXmlImport::createDatabase()
{
"PRAGMA cache_size = 100000", // TODO!!!
"PRAGMA synchronous = OFF", // TODO!!!
"SELECT InitSpatialMetadata()",
"SELECT InitSpatialMetadata(1)",
"CREATE TABLE nodes ( id INTEGER PRIMARY KEY, lat REAL, lon REAL )",
"CREATE TABLE nodes_tags ( id INTEGER, k TEXT, v TEXT )",
"CREATE TABLE ways ( id INTEGER PRIMARY KEY )",
Expand Down

0 comments on commit afd4687

Please sign in to comment.