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

Sarah Hoffmann notifications at github.com
Tue Feb 14 22:02:36 UTC 2017


lonvia 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;

Done.

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170214/cfbfa479/attachment.html>


More information about the Tile-serving mailing list