[postgis-devel] [PostGIS] #576: 3d distance functions

PostGIS trac at osgeo.org
Sat Aug 21 06:05:04 PDT 2010


#576: 3d distance functions
-------------------------+--------------------------------------------------
 Reporter:  nicklas      |       Owner:  pramsey      
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.0.0
Component:  postgis      |     Version:  trunk        
 Keywords:               |  
-------------------------+--------------------------------------------------
 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[[BR]]
 point-linestring[[BR]]


 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?[[BR]]
 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[[BR]]
 ST_MaxDistance3d[[BR]]
 ST_ClosestPoint3d[[BR]]
 ST_Shortestline3d[[BR]]
 ST_Longestline3d[[BR]]
 ST_Dwithin3d[[BR]]
 ST_DFullywithin3d[[BR]]

 There is no indexes involved and no use of the faster way of calculating
 distances.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/576>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list