}
private Geometry toGeometry(GeometryFactory factory, AbstractGeometryInfo geom) {
Geometry geometry = null;
if (geom instanceof AbstractGeometryCollectionInfo) {
AbstractGeometryCollectionInfo geomCollection = (AbstractGeometryCollectionInfo) geom;
List<GeometryMemberInfo> members = geomCollection.getGeometryMemberList();
if (geom instanceof MultiPointInfo) {
Point[] points = new Point[members.size()];
for (int i = 0; i < members.size(); i++) {
points[i] = (Point) toSimpleGeometry(factory, members.get(i).getGeometry());
}