[postgis-tickets] [PostGIS] #3809: Add ST_DistanceIndexed function

PostGIS trac at osgeo.org
Fri Aug 25 06:01:54 PDT 2017


#3809: Add ST_DistanceIndexed function
--------------------------+---------------------------
  Reporter:  dbaston      |      Owner:  pramsey
      Type:  enhancement  |     Status:  new
  Priority:  blocker      |  Milestone:  PostGIS 2.4.0
 Component:  postgis      |    Version:  trunk
Resolution:               |   Keywords:
--------------------------+---------------------------

Comment (by dbaston):

 The indexed distance calculations in GEOS use a particular definition of
 "distance."  From the JTS docs:


 > Distances will be computed to all facets of the input geometry. The
 facets of the geometry are the discrete segments and points contained in
 its components. In the case of Lineal and Puntal inputs, this is
 equivalent to computing the conventional distance. In the case of
 Polygonal inputs, this is equivalent to computing the distance to the
 polygons boundaries.

 When one polygon is entirely contained within another polygon, the
 distance between them is greater than zero.

 I think this functionality is valuable in PostGIS, but the name
 {{{ST_DistanceIndexed}}} risks creating confusion.

 Is one of these options better?

 * ST_LinearDistanceIndexed
 * ST_BoundaryDistanceIndexed
 * ST_IndexedFacetDistance (the JTS name)

 ?

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3809#comment:2>
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-tickets mailing list