- #1802, improved function interruptibility.
- #1856, tiger geocoder: reverse geocoder rating setting for prefer numbered highway name
- #1938, Refactor basic ST_AddBand to add multiple new bands in one call
+ - #1978, wrong answer when calculating length of a closed circular arc (circle)
* Fixes *
is_circle = LW_TRUE;
/* Negative radius signals straight line, p1/p2/p3 are colinear */
- if ( radius < 0.0 || p2_side == 0 )
+ if ( (radius < 0.0 || p2_side == 0) && ! is_circle )
return NULL;
/* The side of the p1/p3 line that p2 falls on dictates the sweep
-- #1957 --
SELECT '#1957', ST_Distance(ST_Makeline(ARRAY['POINT(1 0)'::geometry]), 'POINT(0 0)'::geometry);
+-- #1978 --
+SELECT '#1978', round(ST_Length(ST_GeomFromText('CIRCULARSTRING(0 0,1 0,0 0)',0))::numeric,4);
+
-- Clean up
DELETE FROM spatial_ref_sys;
ERROR: ST_Segmentize: invalid max_distance 0 (must be >= 0)
ERROR: invalid GML representation
#1957|1
+#1978|3.1413