From: Paul Ramsey Date: Sat, 19 Oct 2013 04:24:54 +0000 (+0000) Subject: #2433, ST_ConcaveHull 2.1 regress failure compared to 2.0 X-Git-Tag: 2.2.0rc1~1321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95f32e10b95421c7fb1fdf245fa1630c497bdb4b;p=postgis #2433, ST_ConcaveHull 2.1 regress failure compared to 2.0 git-svn-id: http://svn.osgeo.org/postgis/trunk@12049 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom.c b/liblwgeom/lwgeom.c index 4221f1c47..d5f16646b 100644 --- a/liblwgeom/lwgeom.c +++ b/liblwgeom/lwgeom.c @@ -1502,12 +1502,11 @@ void lwgeom_set_srid(LWGEOM *geom, int32_t srid) if ( lwgeom_is_collection(geom) ) { - /* All the children are set to the unknown SRID value - TODO: change this so the children have a known SRID? */ + /* All the children are set to the same SRID value */ LWCOLLECTION *col = lwgeom_as_lwcollection(geom); for ( i = 0; i < col->ngeoms; i++ ) { - lwgeom_set_srid(col->geoms[i], SRID_UNKNOWN); + lwgeom_set_srid(col->geoms[i], srid); } } } diff --git a/regress/summary_expected b/regress/summary_expected index 1a2c48529..7c2f7936a 100644 --- a/regress/summary_expected +++ b/regress/summary_expected @@ -9,7 +9,7 @@ T1ZMBS|Point[ZMBS] T3|MultiPoint[B] with 1 elements Point[] T4|MultiPoint[BS] with 1 elements - Point[] + Point[S] T5|GeometryCollection[B] with 2 elements MultiLineString[] with 2 elements LineString[] with 2 points @@ -17,8 +17,8 @@ T5|GeometryCollection[B] with 2 elements MultiPoint[] with 1 elements Point[] T6|GeometryCollection[BS] with 2 elements - MultiLineString[] with 2 elements - LineString[] with 2 points - LineString[] with 2 points - MultiPoint[] with 1 elements - Point[] + MultiLineString[S] with 2 elements + LineString[S] with 2 points + LineString[S] with 2 points + MultiPoint[S] with 1 elements + Point[S]