<div dir="ltr">Hi Felix,<div><br></div><div>This was fixed in PostGIS 2.5. </div><div><br></div><div>There your query ends up with geometry like this:</div><div><br></div><div><span style="font-family:monospace"> GEOMETRYCOLLECTION Z (TIN Z (((0 0 0,0 1 0,1 1 0,0 0 0)),((1 0 0,0 0 0,1 1 0,1 0 0)),((0 1 1,1 0 1,1 1 1,0 1 1)),((0 1 1,0 0 1,1 0 1,0 1 1)),((0 0 0,0 0 1,0 1 1,0 0 0)),((0 1 0,0 0 0,0 1 1,0 1 0)),((1 0 1,1 1 0,1 1 1,1 0 1)),((1 0 1,1 0 0,1 1 0,1 0 1)),((0 0 1,1 0 0,1 0 1,0 0 1)),(<br>(0 0 1,0 0 0,1 0 0,0 0 1)),((0 1 0,0 1 1,1 1 1,0 1 0)),((1 1 0,0 1 0,1 1 1,1 1 0))))<br></span></div></div><br><div class="gmail_quote"><div dir="ltr">ср, 18 июл. 2018 г. в 11:21, Felix Kunde <<a href="mailto:felix-kunde@gmx.de">felix-kunde@gmx.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
thought that's easy to do with the postgis_sfcgal extension, but no:<br>
SELECT ST_Tesselate('BOX3D(0 0 0,1 1 1)'::box3d::geometry));<br>
<br>
ERROR: Solid is invalid : PolyhedralSurface (shell) 0 is invalid: not connected : SOLID((((0/1 0/1 0/1,0/1 1/1 0/1,1/1 1/1 0/1,1/1 0/1 0/1,0/1 0/1 0/1)),((0/1 0/1 1/1,0/1 1/1 1/1,1/1 1/1 1/1,1/1 0/1 1/1,0/1 0/1 1/1)),((0/1 0/1 0/1,0/1 1/1 0/1,0/1 1/1 1/1,0/1 0/1<br>
SQL Status:XX000<br>
<br>
The polygons are not in the right order :-/<br>
Also tried dumping and delaunay triangulation but yet not solution. Anyone else?<br>
<br>
Cheers,<br>
Felix<br>
<br>
<br>
<br>
Gesendet: Dienstag, 17. Juli 2018 um 20:04 Uhr<br>
Von: "Tom Kazimiers" <<a href="mailto:tom@voodoo-arts.net" target="_blank">tom@voodoo-arts.net</a>><br>
An: <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
Betreff: [postgis-users] Convert Box3D to TIN geometries<br>
Hi all,<br>
<br>
I need to convert a lot of Box3D geometries to TIN geometries. Is there a way in PostGIS to do this without specifiying each triangle and vertex for the new TINs explicitly? Idealy, I would just be able to issue a simple update statement without needing to think about vertex order and triangle order.<br>
<br>
Thanks,<br>
Tom_______________________________________________ postgis-users mailing list <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">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/mailman/listinfo/postgis-users</a></blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa">http://patreon.com/komzpa</a></div></div>