private static GeometryCollection convert(org.postgis.GeometryCollection geometry) {
Geometry[] geometries = new Geometry[geometry.numGeoms()];
for (int i = 0; i < geometries.length; i++) {
geometries[i] = convert(geometry.getSubGeometry(i));
}
return new GeometryCollection(geometries);
}