[postgis-tickets] [PostGIS] #5027: ST_3DMaxDistance error message on 2D curves needs some work

PostGIS trac at osgeo.org
Fri Nov 26 11:53:23 PST 2021


#5027: ST_3DMaxDistance error message on 2D curves needs some work
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  low      |  Milestone:  PostGIS 3.1.5
Component:  postgis  |    Version:  2.5.x
 Keywords:           |
---------------------+---------------------------
 Okay this gives a codish error that will be hard to dicpher for end users
 {{{
 SELECT ST_3DMaxDistance('POLYGON((1 2 ,1 2 ,1 2 ,1 2 ))'::geometry,
 'MULTISURFACE(CURVEPOLYGON(CIRCULARSTRING(-71.0821 42.3036 ,-71.4821
 42.3036 ,-71.7821 42.7036 ,-71.0821 42.7036 ,-71.0821 42.3036),(-71.1821
 42.4036,-71.3821 42.6036,-71.3821 42.4036,-71.1821 42.4036 )))'::geometry)
 }}}
 gives error:
 ERROR:  lw_dist2d_ptarray_ptarrayarc does not currently support DIST_MAX
 mode

 Should give error like this:
 {{{
 SELECT ST_3DMaxDistance('POLYGON((1 2 1,1 2 1,1 2 1,1 2 1))'::geometry,
 'MULTISURFACE(CURVEPOLYGON(CIRCULARSTRING(-71.0821 42.3036 1,-71.4821
 42.3036 1,-71.7821 42.7036 1,-71.0821 42.7036 1,-71.0821 42.3036
 1),(-71.1821 42.4036 1,-71.3821 42.6036 1,-71.3821 42.4036 1,-71.1821
 42.4036 1)))'::geometry)
 }}}
 gives error:


 {{{
 ERROR:  lw_dist3d_distribute_bruteforce: Unsupported geometry type:
 CircularString
 SQL state: XX000
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5027>
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