<div dir="ltr"><div><div><div><div><div><div>hey,<br>thanks for the answer.<br></div>I'm not confused (or non more than usual :-) ).<br></div><div><div style="margin-left:40px">Postgres sequences are another matter, I personally find non-successing number not optimal because it makes thinks less reproducible. (I'm in a state S. I create A then I destroy A. Yet I'm not in state S ). I agree it greatly simplifies things and I use it too.<br>
</div><br></div><div><br></div><div>It is a very small bug, and I'm absolutely not criticizing or lecturing : I'm a beginner.<br></div><div><br></div>It was a flaw in design : to get all the layer on summary we shouldn't look into relations table (too low level : edge & co), because a layer can exist and have 0 relation.<br>
</div><div>(and for performance it is also a bad idea to look into big table and do distinct ...)<br></div><div><br></div>On the opposite we should look into a high level table (like topology.layer) to get the information.<br>
<br></div>Anyway it's a very small problem that could be stated like this :<br></div>when using summary on a topology where there is an empty layer (meaning it has yet no topogeom inside), this layer is not counted in summary : <br>
</div>As you can see on the output, I have 3 layers, yet summary count 2.<br><br><div><div><br><div style="margin-left:40px"><font size="1">Topology demo_zone_test (11), SRID 931008, precision 0.1, has Z</font><br><font size="1">
88 nodes, 105 edges, 49 faces, 76 topogeoms in<span style="color:rgb(255,255,0)"><span style="background-color:rgb(255,0,0)">  2 layers</span></span></font><br><font size="1">Layer 1, type Lineal (2), 48 topogeoms</font><br>
<font size="1"> Deploy: <a href="http://demo_zone_test.route_demo.tg" target="_blank">demo_zone_test.route_demo.tg</a></font><br><font size="1">Layer 4, type Polygonal (3), 28 topogeoms</font><br><font size="1">
 Deploy: <a href="http://demo_zone_test.bati_demo.tg" target="_blank">demo_zone_test.bati_demo.tg</a></font><br><font size="1">Layer 5, type Polygonal (3), 0 topogeoms</font><br><font size="1"> Deploy: <a href="http://demo_zone_test.chaussee.tg" target="_blank">demo_zone_test.chaussee.tg</a></font><br>
<br></div></div></div><div class="gmail_extra">Anyway what you propose is equivalent ( If there is no more than 1 topology per schema, but I think this is the case by construction), so do as you please. I was trying to imitate your way of coding to blend in.<br>
<br></div><div class="gmail_extra">I'm stopping to work on topology for the moment anyway as it is very unstable in this version, so I'll install the new version before going on.<br></div><div class="gmail_extra">
<br></div><div class="gmail_extra">Cheers,<br><br>Rémi-C</div></div>