<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello!<div class=""><br class=""></div><div class="">I’d like to make a port of polylabel function (<a href="https://github.com/mapbox/polylabel" class="">https://github.com/mapbox/polylabel</a>) to PostGIS. My goal is to have an ST_PoleOfInaccessibility function in PostGIS, that acts a lot like ST_Centroid or ST_PointOnSurface, but finds the visual center of a polygon.</div><div class="">Since it has a C++ version and GEOS is a major PostGIS dependency, I guess it’s a good fit to port it here.</div><div class="">The problem is this hpp has some dependencies on mapbox bits: geometry.hpp (<a href="https://github.com/mapbox/geometry.hpp" class="">https://github.com/mapbox/geometry.hpp</a>) and variant, which I hope could be substituted with GEOS types.</div><div class="">I haven’t ever looked into GEOS code yet and I’m not perfect at C++ either, so I guess this relatively simple task is a good point to start.</div><div class="">Can someone please provide guides on where to start with this port. </div><div class="">Is it reasonable to have this code in GEOS, or this has to be done with just plpgsql without touching any dependencies?</div><div class="">Any feedback on this topic is appreciated.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Nick</div></body></html>