<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello Dave,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I must note that pgr_pointsAsPolygon calls pgr_alphaShape internally. So you might be getting an alpha shape.<br>Might be confising giving the fact that you want a polygon not an alpha shape.<br>The revision of both functions is still pending, that is: those have not being rewritten to match the code's standards that its being implemented during the 2.x series of pgRouting.<br>Can you post the found bug in github issues please. So when the rewrite is done we don't forget to cover the issue.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">On the mean time I will try to replicate with the file you sent<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">regards<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Vicky<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 24, 2017 at 1:44 AM, Dave Potts <span dir="ltr"><<a href="mailto:mrdapotts@gmail.com" target="_blank">mrdapotts@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think I may have found an issue with the pgr_pointsasPolygon function<div><br></div><div>I have a collection off points,  I have assumed that the pgr_pointsasPolygon would draw a bounding polygon around all the points.</div><div><br></div><div>What seems to happen is that I get two very small polygon generated</div><div><br></div><div>Example as follows</div><div><br></div><div>insert into bug_output(the_geom) select st_setsrid(the_geom,3857)  from pgr_pointsasPolygon('select id, st_x(the_geom) as x, st_y(the_geom) as y from bug_input',0) as the_geom ;<br></div><div>Two small polygons generated</div><div><br></div><div>I try the following</div><div>insert into bug_output(the_geom) select st_multi((st_convexhull(st_<wbr>collect(the_geom)))) from bug_input;<br></div><div><br></div><div>I get only large bounding polygon</div><div><br></div><div>I have checked the results with qgis<br><br>IF I have made a mistake please tell me </div><div>(dump of bug_input table attached)<span class="HOEnZb"><font color="#888888"><br><br>Dave</font></span></div><div><br></div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pgrouting-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/pgrouting-<wbr>users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre>Georepublic UG (haftungsbeschränkt)
Salzmannstraße 44, 
81739 München, Germany

Vicky Vergara
Operations Research

eMail: vicky@<a href="http://georepublic.de" target="_blank">georepublic.de</a>
Web: <a href="https://georepublic.info" target="_blank">https://georepublic.info</a>

Tel: +49 (089) 4161 7698-1
Fax: +49 (089) 4161 7698-9

Commercial register: Amtsgericht München, HRB 181428
CEO: Daniel Kastl

<span></span></pre></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>