Please note that surnsme is Чайкин (Chaikin) and does not have "s" in it.<br><br><div class="gmail_quote"><div dir="ltr">On пт, 9 сак 2018, 15.25 Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sure.  Something I've always wanted.<br>
<br>
As far as the name goes,  it would be nice to keep Chaikins in the name, but if you want the name to be searchable by purpose<br>
<br>
Perhaps something like  ST_ChaikinsSmooth<br>
<br>
Thanks,<br>
Regina<br>
<br>
<br>
-----Original Message-----<br>
From: postgis-devel [mailto:<a href="mailto:postgis-devel-bounces@lists.osgeo.org" target="_blank">postgis-devel-bounces@lists.osgeo.org</a>] On Behalf Of Nicklas Avén<br>
Sent: Friday, March 09, 2018 5:03 AM<br>
To: <a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
Subject: [postgis-devel] smoothing function Chaikins algorithm<br>
<br>
Hello<br>
<br>
I have implemented chiakins algorithm for smoothing geometries.<br>
<br>
<a href="http://idav.ucdavis.edu/education/CAGDNotes/Chaikins-Algorithm/Chaikins-Algorithm.html" rel="noreferrer" target="_blank">http://idav.ucdavis.edu/education/CAGDNotes/Chaikins-Algorithm/Chaikins<br>
-Algorithm.html</a><br>
<br>
The algorithm is amazing simple<br>
<br>
Signature is:<br>
<br>
st_chaikins(geom geometry, n_iterations int, preserve_endpoints<br>
boolean)<br>
<br>
Do we want it in PostGIS?<br>
<br>
Should it be a more describing name than st_chaikins?<br>
<br>
The function more or less doubles the number of vertex points per iteration, so I have to put in a max number of iterations. I tried it with 40 iterations without thinking about it and it of course crashed the server :-)<br>
<br>
It can be combined with some simplify function to again reduce number of verteces.<br>
<br>
The use case here is geometries generated from raster to smooth out the pixels.<br>
<br>
I have some cleanup to do before putting it somewhere.<br>
<br>
Thanks<br>
<br>
Nicklas<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a><br>
<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div>