[postgis-users] Ideas for 3D snapping for linestrings

Alexandre Neto senhor.neto at gmail.com
Wed Aug 12 08:24:25 PDT 2020

Never mind,

It seems that, despite not saying in the documentation, ST_SNAP will also
snap vertexes to the Z value of the reference feature. The only thing that
is not taken into consideration is the 3D distance for the tolerance, which
seems to be planimetric.


Alexandre Neto

On Wed, Aug 12, 2020 at 2:42 AM Alexandre Neto <senhor.neto at gmail.com>

> Hi,
> In the past I have successfully been able to fix linestring topology
> problems (undershoots and overshoots) by using the following approach:
> - identify startpoints and endpoints closer to another line less than a
> given distance;
> - determine the closest point to that other line;
> - use a collection of closest points as input to ST_snap, to force the
> lines to pass on those points.
> This works fine for 2D linestrings, but know I need to make the Z values
> of those touching vertexes also match. If I am not wrong, ST_snap only
> works for 2D, Any ideas of how to assign the same Z to vertexes that have
> the same XY?
> Thanks,
> Alexandre Neto
> Now, I also need to do it in 3D, any
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20200812/315ef7b8/attachment.html>

More information about the postgis-users mailing list