Fix memory mapping "Invalid argument" exception.

This commit is contained in:
Michael Krasnyk
2016-05-01 19:11:06 +02:00
committed by Patrick Niklaus
parent 3984dea34b
commit 70cd7a94ec
+2
View File
@@ -201,6 +201,8 @@ class StaticRTree
leaf_node_file.write((char *)&current_leaf, sizeof(current_leaf));
processed_objects_count += current_leaf.object_count;
}
leaf_node_file.flush();
leaf_node_file.close();
std::uint32_t processing_level = 0;
while (1 < tree_nodes_in_level.size())