renderEmptyGeometry(f, style);
}
public void testRenderPolygonEmptyRings() throws SchemaException, IllegalAttributeException {
GeometryFactory gf = new GeometryFactory();
StyleBuilder sb = new StyleBuilder();
SimpleFeatureType pointType = DataUtilities.createType("emptyRings", "geom:MultiPolygon,name:String");
LinearRing emptyRing = gf.createLinearRing((Coordinate[]) null);
LinearRing realRing = gf.createLinearRing(new Coordinate[] {new Coordinate(0,0),
new Coordinate(1, 1), new Coordinate(1, 0), new Coordinate(0,0)});
Polygon p1 = gf.createPolygon(realRing, new LinearRing[] {emptyRing});
Polygon p2 = gf.createPolygon(emptyRing, new LinearRing[] {emptyRing});
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);
}