Hi Alexandre, I can reproduce the problem you reported with version
3.3.0, could you please file a ticket on
trac.osgeo.org/postgis with
all the detail ? It sounds like a regression.
Use component "Topology" please.
I confirm using 2D only works fine.
Gory details: the problem likely lays in _lwt_MakeRingShell which
was recently changed to NOT use GEOS but rather do things internally,
to reduce overhead. The internal implementation is NOT dropping the Z
as the geos implementation did.
Your filing a ticket will greatly help :)
--strk;
On Fri, Aug 26, 2022 at 11:14:11AM +0000, Alexandre Silva wrote:
> Hello,
>
> I'm having some trouble creating a 3D topology using totopogeom method, I don't know if I'm not using the functions correctly or if there's indeed a bug, so any help would be appreciated.
>
> I reduced the problem to an example with two lines.
> The first line is added with no errors to the topology but the second one throws this error "Corrupted topology: ring of edge -3 is geometrically not-closed".
> The second line intersects with the first one, but there's no vertex on the intersection.
> I found two workarounds but both of them have some disadvantages in my point of view.
> The first one was to add manually a vertex on the intersection (this involves someone doing that work manually).
> The other one was to add the start and end point of every line using topogeo_addpoint before calling totopogeom (this involves remembering to do this every time that I create a topology and I think it's redundant and overhead for most cases).
>