Merge commit 'babbda98a6ea1d53a8bc5015ef5dfb313c47186a' into libosmium-2.10.0
This commit is contained in:
@@ -51,6 +51,9 @@ namespace osmium {
|
||||
namespace handler {
|
||||
|
||||
/**
|
||||
* Writes OSM data in the Osmium-internal serialized format to disk
|
||||
* keeping track of object offsets in the indexes given to the
|
||||
* constructor.
|
||||
*
|
||||
* Note: This handler will only work if either all object IDs are
|
||||
* positive or all object IDs are negative.
|
||||
@@ -95,10 +98,8 @@ namespace osmium {
|
||||
m_offset += relation.byte_size();
|
||||
}
|
||||
|
||||
// XXX
|
||||
void operator()(const osmium::memory::Buffer& buffer) {
|
||||
osmium::io::detail::reliable_write(m_data_fd, buffer.data(), buffer.committed());
|
||||
|
||||
osmium::apply(buffer.begin(), buffer.end(), *this);
|
||||
}
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace osmium {
|
||||
}
|
||||
}
|
||||
if (error && !m_ignore_errors) {
|
||||
throw osmium::not_found("location for one or more nodes not found in node location index");
|
||||
throw osmium::not_found{"location for one or more nodes not found in node location index"};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ namespace osmium {
|
||||
namespace handler {
|
||||
|
||||
/**
|
||||
* This handler updates the indexes given to the constructor with
|
||||
* the relations between objects.
|
||||
*
|
||||
* Note: This handler will only work if either all object IDs are
|
||||
* positive or all object IDs are negative.
|
||||
|
||||
Reference in New Issue
Block a user