<div dir="ltr"><div class="gmail_extra">Hi, answers below:<br><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 1:53 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On Mon, Feb 24, 2014 at 12:01:28PM +0000, Gonçalo Revez wrote:<br>

> Hello,<br>
><br>
> I'm using the postgis topology with the following example below.<br>
><br>
> It inserts three contiguous polygons, but the third has a strange behavior.<br>
><br>
> It seems that the polygon doesn't snap totally to the other polygon (with<br>
> model tolerance of 0.1), where he should split the edges and create a node.<br>
><br>
> The problem raises two edges "overlapped". (I attach an image showing the<br>
> topology error).<br>
<br>
</div>Does ValidateTopology catches that error ?<br></blockquote><div><br></div><div><b>G: No the validation doesn't catch any error.</b></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class=""><br>
> In fact, using the jts viewer, the third polygon overlaps the first<br>
> polygon, but below the topology model tolerance.<br>
<br>
</div>In the topology primitives tables there are no polygons, the errors<br>
you're after are overlapping or crossing edges, can you find them ?<br></blockquote><div><br></div><div><b>G: yes, the edges, 2 and 6,  are overlapped (or seems to).</b></div><div><b>I attach two image with edge2 identified and edge6 identified (where they share some part)</b></div>
<div><b><br></b></div><div><b>Shouldn't be create an edge between the part both edges share (and created a node) ?</b></div><div><b><br></b></div><div><b>For example, if I override the tolerance value of the model through </b><b>the function toTopoGeom of the insert of the polygon 3, </b></div>
<div><b>with a value around 4 meter, I get the expected. The edges are splitted.</b></div><div><b><br></b></div><div><b>But the edges doesn't distance more than 1 meter.</b></div><div><b><br></b></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class=""><br>
> How is it possible to solve this type of situation or what could be the<br>
> error in example?<br>
<br>
</div>Can it be you're referring to TopoGeometry overlap ?<br>
Those ones are not errors, but perfectly leagal situations.<br>
You can find them by counting the number of TopoGeometry objects<br>
each topolgy face primitive contributes to.<br>
Faces with count > 1 are overlaps, faces with count < 1 are "gaps".<br></blockquote><div><br></div><div><b>G: I have 3 polygons, 3 topoGeometry and 3 faces (and face 0). It didn't create gaps.</b></div>
<div><b><br></b></div><div><b>If i tried to insert the third polygon again, meaning, duplicate the topogeometry table record, and then using the same faceid , i get </b></div><div><b>the error: geometry intersects edge 6<br>
</b></div><div><b><br></b></div><div><b>Thanks</b></div><div><b><br></b></div><div><b><br></b></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
--strk;<br>
<div class=""><div class="h5">_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div></div>