} else if (linestring.ifCoordinates()) {
geometry = factory.createLineString(getCoordinates(linestring.getCoordinates()));
}
} else if (geom instanceof PolygonTypeInfo) {
PolygonTypeInfo polygon = (PolygonTypeInfo) geom;
OuterBoundaryIsInfo outer = polygon.getOuterBoundaryIs();
LinearRing shell = toLinearRing(factory, outer.getLinearRing());
LinearRing[] holes = new LinearRing[polygon.getInnerBoundaryIList().size()];
int i = 0;
for (InnerBoundaryIsInfo inner : polygon.getInnerBoundaryIList()) {
holes[i++] = toLinearRing(factory, inner.getLinearRing());
}