<div dir="ltr">Hi!<br><br>That's cool!<br><br><div>We needed Voronoi Polygons half a year ago in our analytics, so I searched for solution and wrapped it into a function:</div><div><br></div><div><a href="https://github.com/wgnet/globalmap/blob/master/code/postgis_wrappers/ST_VoronoiPolygons.sql">https://github.com/wgnet/globalmap/blob/master/code/postgis_wrappers/ST_VoronoiPolygons.sql</a><br></div><div><br></div><div>You can probably find it useful when preparing testcases or experimenting with signature.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-01 8:58 GMT+03:00 Brian M Hamlin <span dir="ltr"><<a href="mailto:maplabs@light42.com" target="_blank">maplabs@light42.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi devs --<br>
 <br>
  I forked the PostGIS git repo and merged in stubs for an ST_VoronoiDiagram() function.. <br>
( the call is already ported in GEOS, so the task at hand is to expose it in PostGIS 2.2)<br>
 <br>
  If the function is added to PostGIS 2.2, I can commit to writing the tests and see that they pass. <br>
(I have not added the new internals yet, nor the test contents -- this is a first try.. )<br>
 <br>
 <br>
You can take a look at the fork here :<br>
 <br>
    <a href="https://github.com/darkblue-b/postgis" target="_blank">https://github.com/darkblue-b/postgis</a><br>
 <br>
Here is the `git status` result, just before the push:<br>
<---------------------------------------------------------------<br>
deb8:postgis_22_git user$ git status<br>
On branch svn-trunk<br>
Your branch is up-to-date with 'origin/svn-trunk'.<br>
Changes to be committed:<br>
  (use "git reset HEAD ..." to unstage)<br>
 <br>
modified:   liblwgeom/cunit/cu_triangulate.c<br>
modified:   liblwgeom/<a href="http://liblwgeom.h.in" target="_blank">liblwgeom.h.in</a><br>
modified:   liblwgeom/lwin_wkt_parse.c<br>
modified:   liblwgeom/lwin_wkt_parse.h<br>
modified:   postgis/lwgeom_geos.c<br>
modified:   postgis/<a href="http://postgis.sql.in" target="_blank">postgis.sql.in</a><br>
modified:   regress/Makefile.in<br>
new file:   regress/voronoidiagrams.sql<br>
new file:   regress/voronoidiagrams_expected<br>
 <br>
----------------------------------------------------------------><br>
 <br>
As reference material, I have JTS 1.13 in Eclipse "kepler" in a decent state (classpaths etc)<br>
on the Java side,  and GEOS 3.5dev PostGIS 2.2 trunk, in several build environments.<br>
 <br>
<br>
--<br>
Brian M Hamlin<br>
OSGeo California Chapter<br>
<a href="http://blog.light42.com" target="_blank">blog.light42.com</a><br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Darafei "Komяpa" Praliaskouski<br>OSM BY Team - <a href="http://openstreetmap.by/" target="_blank">http://openstreetmap.by/</a><br><a href="mailto:xmpp%3Ame@komzpa.net" target="_blank">xmpp:me@komzpa.net</a> mailto:<a href="mailto:me@komzpa.net" target="_blank">me@komzpa.net</a><br></div>
</div>