directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
directPositionList.add(positionFactory.createDirectPosition(new double[] {40, 10, 0.0}));
directPositionList.add(positionFactory.createDirectPosition(new double[] {50, 40, 0.0}));
directPositionList.add(positionFactory.createDirectPosition(new double[] {30, 50, 0.0}));
directPositionList.add(positionFactory.createDirectPosition(new double[] {10, 30, 0.0}));
directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
Ring exteriorRing = tPrimFactory.createRingByDirectPositions(directPositionList);
List<Ring> interiors = new ArrayList<Ring>();
SurfaceBoundary boundary = new SurfaceBoundaryImpl(cf.getCoordinateReferenceSystem(), exteriorRing, interiors);