Opened 2 years ago

Closed 18 months ago

#5027 closed defect (wontfix)

ST_3DMaxDistance error message on 2D curves needs some work

Reported by: robe Owned by: robe
Priority: low Milestone: PostGIS 3.3.2
Component: postgis Version: 2.5.x -- EOL
Keywords: Cc:

Description

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

Change History (7)

comment:1 by robe, 2 years ago

Milestone: PostGIS 3.1.5PostGIS 3.3.0

comment:2 by robe, 22 months ago

Milestone: PostGIS 3.3.0PostGIS 3.2.2

comment:3 by robe, 21 months ago

Milestone: PostGIS 3.2.2PostGIS 3.3.0

comment:4 by robe, 20 months ago

Milestone: PostGIS 3.3.0PostGIS 3.2.4

comment:5 by robe, 20 months ago

Milestone: PostGIS 3.2.4PostGIS 3.3.2

comment:6 by robe, 18 months ago

Owner: changed from pramsey to robe

comment:7 by robe, 18 months ago

Resolution: wontfix
Status: newclosed

Not going to bother fixing as this function is used elsewhere

Note: See TracTickets for help on using tickets.