- #1932, fix raster2pgsql of syntax for index tablespaces
- #1939, remove custom data types: summarystats, histogram, quantile, valuecount
- #1951, remove crash on zero-length linestrings
+ - #1957, ST_Distance to a one-point LineString returns NULL
- #1981, cleanup of unused variables causing warnings with gcc 4.6+
PostGIS 2.0.1
getPoint2d_p(pa, 0, &start);
+ if ( !lw_dist2d_pt_pt(p, &start, dl) ) return LW_FALSE;
+
for (t=1; t<pa->npoints; t++)
{
dl->twisted=twist;
-- #1799 --
SELECT '#1799', ST_Segmentize('LINESTRING(0 0, 10 0)'::geometry, 0);
+-- #1957 --
+SELECT '#1957', ST_Distance(ST_Makeline(ARRAY['POINT(1 0)'::geometry]), 'POINT(0 0)'::geometry);
+
-- Clean up
DELETE FROM spatial_ref_sys;
#1776|POLYGON((0 0,10 0,10 10,0 0))|POLYGON((0 0,10 0,10 10,0 0))
#1791|4.7
ERROR: ST_Segmentize: invalid max_distance 0 (must be >= 0)
+#1957|1