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);
}
}
}
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
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]