<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey,<br></div><div class="gmail_default" style="font-family:monospace,monospace">if your cases are always like those in your illustrations,<br></div><div class="gmail_default" style="font-family:monospace,monospace">problem is tractable without too much effort.<br></div><div class="gmail_default" style="font-family:monospace,monospace">(for polygon sharing an arc, get list of arcs, deduplicate list, change arcs into linestring, rebuild polygon using linestring).<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">If you want a solution in all generality (for instance several polygons sharing parts of an arc),<br></div><div class="gmail_default" style="font-family:monospace,monospace">you are going to suffer <br></div><div class="gmail_default" style="font-family:monospace,monospace">Get all arcs from all polygon, group by arcs sharing a center, transform the group of arc to linestring, node the linestring to account for parts of the arcs, rebuild polygonusing correct linestring.<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">As you notice, this is really bad complexity (you have to consider all polygons arcs for one change).<br></div><div class="gmail_default" style="font-family:monospace,monospace">Doing it properly would require to use something like CGAL I guess.<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">Good luck ! <br><br></div><div class="gmail_default" style="font-family:monospace,monospace">:-/<br></div><div class="gmail_default" style="font-family:monospace,monospace">Cheers,<br></div><div class="gmail_default" style="font-family:monospace,monospace">Rémi-C<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-30 10:36 GMT+01:00 Jeker Oliver <span dir="ltr"><<a href="mailto:Oliver.Jeker@bd.so.ch" target="_blank">Oliver.Jeker@bd.so.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="DE-CH">
<div class="m_-6564919027883940237WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">Hey ho everybody<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">We at sogis are looking for a way to convert arcs (curves) to lines without producing slivers and overlaps of adjacent geometries sharing the same arc. It is
 very important for us to find a postgis solution as postgis is the “working horse” in all our automatic data transformation processes.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">We looked at all available postgis functions and could not find a solution.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">Attachments:<u></u><u></u></span></p>
<p class="m_-6564919027883940237MsoListParagraph"><u></u><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">arcs.png: The geometries as stored in the postgresql table: lower left: two adjacent Polygon’s / upper right: one Multipolygon with two adjacent parts
 in it.<u></u><u></u></span></p>
<p class="m_-6564919027883940237MsoListParagraph"><u></u><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">stroked.png: The output when using ST_CurveToLine (The same when forcing right hand rule before calling ST_CurveToLine)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">Thanks for your thoughts – Maybe will see some of you at FOSSGIS in Passau, will give a presentation there…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">Cheers<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-US">Oliver<u></u><u></u></span></p>
</font></span></div>
</div>

<br>______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>