{
LinearRing polygonBounds = this.geometryFactory.createLinearRing( LimbGeneratorTest.Utils.createBoxCoords( 0, 1000, 0, 1000 ) );
Polygon polygon = this.geometryFactory.createPolygon( polygonBounds, null );
Geometry example1 = this.geometryFactory.createLinearRing( LimbGeneratorTest.Utils.createBoxCoords( 500, 1500, 500, 1500 ) );
SimpleIntersectionGenerator testObj = new SimpleIntersectionGenerator();
System.out.println( " -- Corner of linear ring" );
testObj.setShape( polygonBounds );
System.out.println( testObj.generateIntersections( example1 ) );
System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
System.out.println( " -- Corner of Polygon" );
testObj.setShape( polygon );
System.out.println( testObj.generateIntersections( example1 ) );
System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
assertEquals( "Intersection with polygon does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
}