Skip to content

Releases: osmcode/libosmium

Version 2.10.1

15 Nov 13:39
Compare
Choose a tag to compare

Changed

  • Updated embedded protozero to 1.4.3.

Fixed

  • Made IdSet work on 32bit systems.
  • Fixed endianness check for WKB tests.

Version 2.10.0

11 Nov 12:50
Compare
Choose a tag to compare

Added

  • The Reader can take an additional optional read_meta flag. If this is
    set to false the PBF input will ignore metadata on OSM objects (like version,
    timestamp, uid, ...) which speeds up file reading by 10 to 20%.
  • New IdSet virtual class with two implementations: IdSetDense and
    IdSetSmall. Used to efficiently store a set of Ids. This is often needed
    to track, for instance, which nodes are needed for ways, etc.
  • Added more examples and better documented existing examples.
  • Add a benchmark "mercator" converting all node locations in a file to
    WebMercator and creating geometries in WKB format.

Changed

  • Better queue handling makes I/O faster in some circumstances.
  • The FindOsmium.cmake CMake script can now check a current enough libosmium
    version is found.
  • Builders can now be constructed with a reference to parent builder.
  • Made builders more robust by adding asserts that will catch common usage
    problems.
  • Calling OSMObjectBuilder::add_user() is now optional, and the method was
    renamed to set_user(). (add_user() is marked as deprecated.)
  • Benchmarks now show compiler and compiler options used.
  • Builder::add_item() now takes a reference instead of pointer (old version
    of the function marked as deprecated).
  • GEOS support is deprecated. It does not work any more for GEOS 3.6 or newer.
    Reason is the changed interface in GEOS 3.6. If there is interest for the
    GEOS support, we can add support back in later (but probably using the
    GEOS C API which is more stable than the C++ API). Some tests using GEOS
    were rewritten to work without it.
  • The BoolVector has been deprecated in favour of the new IdSet classes.
  • Lots of code cleanups and improved API documentation in many places.
  • The relations collector can now tell you whether a relation member was in
    the input data. See the new is_available() and
    get_availability_and_offset() methods.
  • Updated embedded Catch unit test header to version 1.5.8.

Fixed

  • Parsing of coordinates starting with decimal dot and coordinates in
    scientific notation.
  • ~ operator for entity_bits doesn't set unused bits any more.
  • Progress bar can now be (temporarily) removed, to allow other output.

Version 2.9.0

15 Sep 12:05
Compare
Choose a tag to compare

Added

  • Support for reading OPL files.
  • For diff output OSM objects in buffers can be marked as only in one or the
    other file. The OPL and debug output formats support diff output based on
    this.
  • Add documentation and range checks to Tile struct.
  • More documentation.
  • More examples and more extensive comments on examples.
  • Support for a progress report in osmium::io::Reader() and a ProgressBar
    utility class to use it.
  • New OSMObject::set_timestamp(const char*) function.

Changed

  • Parse coordinates in scientific notations ourselves.
  • Updated included protozero version to 1.4.2.
  • Lots of one-argument constructors are now explicit.
  • Timestamp parser now uses our own implementation instead of strptime.
    This is faster and independant of locale settings.
  • More cases of invalid areas with duplicate segments are reported as
    errors.

Fixed

  • Fixed a problem limiting cache file sizes on Windows to 32 bit.
  • Fixed includes.
  • Exception messages for invalid areas do not report "area contains no rings"
    any more, but "invalid area".

Version 2.8.0

04 Aug 07:19
Compare
Choose a tag to compare

Added

  • EWKT support.
  • Track pop type calls and queue underruns when OSMIUM_DEBUG_QUEUE_SIZE
    environment variable is set.

Changed

  • Switched to newest protozero v1.4.0. This should deliver some speedups
    when parsing PBF files. This also removes the DeltaEncodeIterator class,
    which isn't needed any more.
  • Uses std::unordered_map instead of std::map in PBF string table code
    speeding up writing of PBF files considerably.
  • Uses less memory when writing PBF files (smaller string table by default).
  • Removes dependency on sparsehash and boost program options libraries for
    examples.
  • Cleaned up threaded queue code.

Fixed

  • A potentially very bad bug was fixed: When there are many and/or long strings
    in tag keys and values and/or user names and/or relation roles, the string
    table inside a PBF block would overflow. I have never seen this happen for
    normal OSM data, but that doesn't mean it can't happen. The result is that
    the strings will all be mixed up, keys for values, values for user names or
    whatever.
  • Automatically set correct SRID when creating WKB and GEOS geometries.
    Note that this changes the behaviour of libosmium when creating GEOS
    geometries. Before we created them with -1 as SRID unless set otherwise.
    Manual setting of the SRID on the GEOSGeometryFactory is now deprecated.
  • Allow coordinates of nodes in scientific notation when reading XML files.
    This shouldn't be used really, but sometimes you can find them.

Version 2.7.2

08 Jun 15:33
Compare
Choose a tag to compare

Changed

  • Much faster output of OSM files in XML, OPL, or debug formats.

Fixed

  • Parsing and output of coordinates now faster and always uses decimal dot
    independant of locale setting.
  • Do not output empty discussion elements in changeset XML output.
  • Data corruption regression in mmap based indexes.

Version 2.7.1

01 Jun 08:28
Compare
Choose a tag to compare

New release because I forgot to update the version number in version.hpp.

Version 2.7.0

01 Jun 08:24
Compare
Choose a tag to compare

Added

  • New functions for iterating over specific item types in buffers
    (osmium::memory::Buffer::select()), over specific subitems
    (osmium::OSMObject::subitems()), and for iterating over all rings of
    an area (osmium::Areas::outer_rings(), inner_rings()).
  • Debug output optionally prints CRC32 when add_crc32 file option is set.

Changed

  • XML parser will not allow any XML entities which are usually not used in OSM
    files anyway. This can help avoiding DOS attacks.
  • Removed SortedQueue implementation which was never used.
  • Also incorporate Locations in NodeRefs into CRC32 checksums. This means
    all checksums will be different compared to earlier versions of libosmium.
  • The completely new algorithm for assembling multipolygons is much faster,
    has better error reporting, generates statistics and can build more complex
    multipolygons correctly. The ProblemReporter classes have changed to make
    this happen, if you have written your own, you have to fix it.
  • Sparse node location stores are now only sorted if needed, ie. when nodes
    come in unordered.

Fixed

  • Output operator for Location shows full precision.
  • Undefined behaviour in WKB writer and types_from_string() function.
  • Fix unsigned overflow in pool.hpp.
  • OSM objects are now ordered by type (nodes, then ways, then relations),
    then ID, then version, then timestamp. Ordering by timestamp is normally
    not necessary, because there can't be two objects with same type, ID, and
    version but different timestamp. But this can happen when diffs are
    created from OSM extracts, so we check for this here. This change also
    makes sure IDs are always ordered by absolute IDs, positives first, so
    order is 0, 1, -1, 2, -2, ...
  • Data corruption bug fixed in disk based indexes (used for the node
    location store for instance). This only affected you, if you created
    and index, closed it, and re-opened it (possibly in a different process)
    and if there were missing nodes. If you looked up those nodes, you got
    location (0,0) back instead of an error.
  • Memory corruption bug showing up with GDAL 2.

Version 2.6.1

22 Feb 10:40
Compare
Choose a tag to compare

Added

  • Add WITH_PROFILING option to CMake config. When enabled, this sets the
    -fno-omit-frame-pointer compiler option.

Changed

  • Massive speed improvements when building multipolygons.
  • Uses (and includes) new version 1.3.0 of protozero library.
  • Removed dependency on Boost Iterator for PBF writer.
  • Example program osmium_area_test now uses cerr instead of cout for
    debug output.

Version 2.6.0

04 Feb 07:58
Compare
Choose a tag to compare

Added

  • The new handler osmium::handler::CheckOrder can be used to check that a
    file is properly ordered.
  • Add new method to build OSM nodes, ways, relations, changesets, and areas
    in buffers that wraps the older Builder classes. The new code is much easier
    to use and very flexible. There is no documentation yet, but the tests in
    test/t/builder/test_attr.cpp can give you an idea how it works.
  • Add util class to get memory usage of current process on Linux.

Changed

  • New Buffer memory management speeds up Buffer use, because it doesn't clear
    the memory unnecessarily.

Fixed

  • osmium::Box::extend() function now ignores invalid locations.
  • Install of external library headers.
  • Check way has at least one node before calling is_closed() in area
    assembler.
  • Declaration/definition of some friend functions was in the wrong namespace.