[Tile-serving] [openstreetmap/osm2pgsql] WORK IN PROGRESS: Add pole_of_inaccessibility() function in Lua for polygons (PR #1822)

Jochen Topf notifications at github.com
Sat Nov 19 11:07:56 UTC 2022


@joto commented on this pull request.



> + *
+ * Copyright (C) 2006-2022 by the osm2pgsql developer community.
+ * For a full list of authors see the git log.
+ */
+
+#include "geom.hpp"
+
+namespace geom {
+
+/**
+ * Finding the "pole of inaccessibility", the most distant internal point from
+ * the polygon outline, or center of the maximum inscribed circle.
+ *
+ * \param polygon The input polygon
+ * \param precision Used as cutoff in the recursive algorithm. A minimum cutoff
+ *        is also set at max(width, height) of the polygo envelope / 1000.0.

Thanks for the typos found. They are fixed now.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1822#discussion_r1027075640
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1822/review/1187059618 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221119/a2c57a47/attachment.htm>


More information about the Tile-serving mailing list