private static MultiPolygon convert(org.postgis.MultiPolygon geometry) {
Polygon[] polygons = new Polygon[geometry.numPolygons()];
for (int i = 0; i < polygons.length; i++) {
polygons[i] = convert(geometry.getPolygon(i));
}
return new MultiPolygon(polygons);
}