[Tile-serving] [openstreetmap/osm2pgsql] WORK IN PROGRESS: Add pole_of_inaccessibility() function in Lua for polygons (PR #1822)
Jakob Miksch
notifications at github.com
Fri Nov 18 18:20:28 UTC 2022
@JakobMiksch 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.
```suggestion
* is also set at max(width, height) of the polygon envelope / 1000.0.
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1822#pullrequestreview-1186588373
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1822/review/1186588373 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221118/173f81e4/attachment.htm>
More information about the Tile-serving
mailing list