Download Latest Version v0.13.1 source code.tar.gz (2.8 MB)
Email in envelope

Get an email when there's a new version of S2 Geometry

Home / v0.12.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-02-02 4.1 kB
v0.12.0 source code.tar.gz 2025-02-02 1.3 MB
v0.12.0 source code.zip 2025-02-02 1.7 MB
Totals: 3 Items   3.0 MB 0

Interface Changes

  • Remove glog and gflags dependencies. Now abseil-cpp is used.
  • ABSL_LOG macros are used instead of S2_LOG
    • The indirection could be added back if requested
  • ABSL_CHECK macros are used instead of S2_CHECK
  • S2_DEFINE_ now forwards to ABSL_FLAG
  • New files:
  • s2chain_interpolation_query
  • s2density_tree
  • s2gmock_matchers
  • s2fractal
  • s2shapeutil_count_vertices
  • s2shapeutil_edge_wrap
  • New S2Shape functions:
  • Incoming
  • Outgoing
  • IncidentOn
  • Remove S2Shape::id()
  • New predicates in s2predicates.h
  • S2Region::GetCellUnionBound is now pure virtual
  • Replace S2Testing::Random, which was based on random(3), with new s2random:: namespace, based on abseil-cpp's random library. This removes the use of global state.
  • Use int64_t instead of int64, etc.
  • constexpr fixes
  • Remove some old SWIG workarounds.
  • Now requires abseil-cpp LTS 20240116
  • S2Shape derived classes: Add decoding interface with S2Error
  • S2Error: Interface is now similar to absl::Status, just with a different error code type. In the future, this will probably be replaced by absl::Status.
  • S2CellId: Made some functions constexpr
  • s2edge_crossings: Fix CompareEdges for a case that never happens
  • S2Polygon uses new S2LegacyValidQuery to validate geometry.
  • S2ValidationQuery: New class

What's Changed

New Contributors

Full Changelog: https://github.com/google/s2geometry/compare/v0.11.1...v0.12.0

Source: README.md, updated 2025-02-02