[Tile-serving] [osm2pgsql-dev/osm2pgsql] New feature: Check location of OSM objects against list of regions (PR #2333)
Jochen Topf
notifications at github.com
Fri May 30 12:35:18 UTC 2025
@joto commented on this pull request.
> + }
+ log_info("Added {} regions to locator '{}'.", result.num_tuples(), name());
+}
+
+void locator_t::build_index()
+{
+ log_debug("Building index for locator '{}'", name());
+ std::vector<idx_value_t> m_data;
+ m_data.reserve(m_regions.size());
+
+ std::size_t n = 0;
+ for (auto const ®ion : m_regions) {
+ m_data.emplace_back(region.box(), n++);
+ }
+
+ m_rtree.insert(m_data.cbegin(), m_data.cend());
You are right. Fixed.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2333#discussion_r2115847411
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2333/review/2881224158 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250530/df7e8937/attachment.htm>
More information about the Tile-serving
mailing list