array[0] = new Coordinate(0, 0);
array[1] = new Coordinate(1, 0);
array[2] = new Coordinate(1, 1);
array[3] = new Coordinate(0, 1);
array[4] = new Coordinate(0, 0);
LinearRing shell = new LinearRing(array, new PrecisionModel(), 0);
b.add(gf.createPolygon(shell, null));
b.add(0);
firstArrayGeometry[0] = gf.createPolygon(shell, null);
features.add(b.buildFeature(numFeatures + ""));
}
for (int numFeatures = 0; numFeatures < 1; numFeatures++) {
Coordinate array[] = new Coordinate[5];
Coordinate centre = ((Polygon) features.features().next().getDefaultGeometry())
.getCentroid().getCoordinate();
array[0] = new Coordinate(centre.x, centre.y);
array[1] = new Coordinate(centre.x + 1, centre.y);
array[2] = new Coordinate(centre.x + 1, centre.y + 1);
array[3] = new Coordinate(centre.x, centre.y + 1);
array[4] = new Coordinate(centre.x, centre.y);
LinearRing shell = new LinearRing(array, new PrecisionModel(), 0);
b.add(gf.createPolygon(shell, null));
b.add(0);
secondArrayGeometry[0] = gf.createPolygon(shell, null);
secondFeatures.add(b.buildFeature(numFeatures + ""));
}