bounds.getMaxY()+(bounds.getHeight()/4), DefaultGeographicCRS.WGS84 );
EditBlackboard map=new EditBlackboard(SCREEN.x, SCREEN.y, ScaleUtils.worldToScreenTransform(bounds, new Dimension(100,100)), layerToWorld);
map.setGeometries((Geometry) feature.getDefaultGeometry(), null);
Polygon poly=(Polygon) ((MultiPolygon) feature.getDefaultGeometry()).getGeometryN(0);
PrimitiveShape shell = map.getGeoms().get(0).getShell();
assertEquals(poly.getExteriorRing().getCoordinates().length, shell.getNumCoords());
for (int i=0; i<shell.getNumCoords(); i++){
assertEquals("i="+i, poly.getExteriorRing().getCoordinateN(i), shell.getCoord(i)); //$NON-NLS-1$
}
assertEquals(shell.getCoord(0), shell.getCoord(shell.getNumCoords()-1));
assertEquals(shell.getPoint(0), shell.getPoint(shell.getNumPoints()-1));
List<PrimitiveShape> holes = map.getGeoms().get(0).getHoles();
for( int j=0; j<holes.size(); j++ ) {
PrimitiveShape hole = holes.get(j);
for (int i=0; i<hole.getNumCoords(); i++){
assertEquals("hole="+j+"i="+i, poly.getInteriorRingN(j).getCoordinateN(i), hole.getCoord(i)); //$NON-NLS-1$ //$NON-NLS-2$
}
assertEquals(hole.getCoord(0), hole.getCoord(hole.getNumCoords()-1));
assertEquals(hole.getPoint(0), hole.getPoint(hole.getNumPoints()-1));
}
}