Polygon p1 = gf.createPolygon(gf.createLinearRing((Coordinate[]) null), null);
Polygon p2 = gf.createPolygon(gf.createLinearRing(new Coordinate[] {new Coordinate(0,0),
new Coordinate(1, 1), new Coordinate(1, 0), new Coordinate(0,0)}), null);
MultiPolygon mp = gf.createMultiPolygon(new Polygon[] {p1, p2});
SimpleFeature f = SimpleFeatureBuilder.build(pointType, new Object[] {mp, "name" }, null);
Style style = sb.createStyle(sb.createPolygonSymbolizer());
renderEmptyGeometry(f, style);
}
public void testRenderPolygonEmptyRings() throws SchemaException, IllegalAttributeException {