Ticket #576 (closed enhancement: fixed)
3d distance functions
| Reported by: | nicklas | Owned by: | nicklas |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | Cc: | bitner |
Description
We don't have distance functions that can handle third dimmension yet.
I have copied a spike where I have put the first steps.
http://svn.osgeo.org/postgis/spike/nicklas/dist3d/
So far it is only working in the simple cases
point-point
point-linestring
The rest is a little bit more tricky.
But it is a start and the line-point and point-point cases should work with all the distance-functions.
I have put a suffix on the 3D-versions of the functions as showed below. Is that a good way of naming them?
We have to have special 3D-functions so it is possible to do the 2D-calculation even if the z-value is present.
The new functions are named:
ST_Distance3d
ST_MaxDistance3d
ST_ClosestPoint3d
ST_Shortestline3d
ST_Longestline3d
ST_Dwithin3d
ST_DFullywithin3d
There is no indexes involved and no use of the faster way of calculating distances.
