[postgis-tickets] [PostGIS] #5268: ST_ShortestLine return invalid linestring when distance of geometries is 0

PostGIS trac at osgeo.org
Wed Oct 26 18:31:11 PDT 2022


#5268: ST_ShortestLine return invalid linestring when distance of geometries is 0
----------------------+---------------------------
  Reporter:  latot    |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.4.0
 Component:  postgis  |    Version:  3.3.x
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by robe):

 * milestone:  PostGIS 3.3.2 => PostGIS 3.4.0

Comment:

 This is a hard-call.  It's not something we can change in a micro since
 technically it's not wrong, just invalid.  AS to whether we should change
 it in master (upcoming 3.4.0) is another story.

 We have other functions that return invalid geometries. So we don't have a
 policy of not returning invalid geometries.

 e.g.


 {{{
 SELECT ST_AsText(ST_MakeLine('POINT(0 0 1)'::geometry, 'POINT(0 0
 1)'::geometry));
 }}}

 and as I recall ST_Collect does too for multipolygons.

 So if we say this function shouldn't return an invalid geometry, what
 other functions would we make the same argument for, or would we make it
 for all of them.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5268#comment:1>
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