[Tile-serving] [openstreetmap/osm2pgsql] Use libosmium for geometry building (#684)

Paul Norman notifications at github.com
Wed Feb 8 18:04:41 UTC 2017


pnorman commented on this pull request.



> +        }
+
+        return std::abs(total) * 0.5;
+    }
+
+    template <typename T>
+    T read_data()
+    {
+        auto *data = reinterpret_cast<T const *>(m_wkb + m_pos);
+        m_pos += sizeof(T);
+
+        return *data;
+    }
+
+    char const *m_wkb;
+    unsigned m_pos;

should this be `size_t`? msvc is generating warnings about conversion from `size_t` to `unsigned int` elsewhere?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/684#pullrequestreview-20826426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170208/5e7ae20a/attachment.html>


More information about the Tile-serving mailing list