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
Not going to bother fixing as this function is used elsewhere