// LOGGER.log(Level.WARNING, sdeEx.getMessage());
// throw sdeEx;
// }
int numParts;
GeometryCollection gcol = null;
if (geometry instanceof GeometryCollection) {
gcol = (GeometryCollection) geometry;
} else {
Geometry[] geoms = { geometry };
gcol = new GeometryFactory().createGeometryCollection(geoms);
}
List<SDEPoint> allPoints = new ArrayList<SDEPoint>();
numParts = gcol.getNumGeometries();
int[] partOffsets = new int[numParts];
Geometry geom;
Coordinate[] coords;
Coordinate c;
for (int currGeom = 0; currGeom < numParts; currGeom++) {
partOffsets[currGeom] = allPoints.size();
geom = gcol.getGeometryN(currGeom);
coords = geom.getCoordinates();
for (int i = 0; i < coords.length; i++) {
c = coords[i];