DimensionalFlag flag = DimensionalFlag.valueOf(first.dimension == 3, first.haveMeasure);
PointSequenceBuilder pointSequence = PointSequenceBuilders.variableSized(flag, crs);
for (int i = 0; i < points.length; i++) {
pointSequence.add(convert(points[i]));
}
return pointSequence.toPointSequence();
}
private static GeometryCollection convert(org.postgis.GeometryCollection geometry) {
Geometry[] geometries = new Geometry[geometry.numGeoms()];
for (int i = 0; i < geometries.length; i++) {