new ReferencedEnvelope(0, 100, 0, 100, mapContext.getCoordinateReferenceSystem()));
mapContext.getViewport().setCoordinateReferenceSystem(mapContext.getCoordinateReferenceSystem());
mapContext.getViewport().setScreenArea(new Rectangle(0, 0, 100, 100));
GeometryDirectLayer layer = (GeometryDirectLayer) layerFactory.createLayer(mapContext, geo);
BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_4BYTE_ABGR);
layer.draw(image.createGraphics(), mapContext, mapContext.getViewport());
new DirectLayerAssert(layer, mapContext).assertEqualImage("polygon.png", writeImages, DELTA);
}
private FeatureStyleInfo createPolygonStyle() {
FeatureStyleInfo style = new FeatureStyleInfo();