assertEquals( "{\"type\":\"MultiPolygon\",\"coordinates\":[[[[0,0],[0,5],[5,5],[5,0],[0,0]],[[1,1],[1,2],[2,2],[2,1],[1,1]],[[3,3],[3,4],[4,4],[4,3],[3,3]]],[[[0,0],[0,5],[5,5],[5,0],[0,0]],[[1,1],[1,2],[2,2],[2,1],[1,1]],[[3,3],[3,4],[4,4],[4,3],[3,3]]],[[[0,0],[0,5],[5,5],[5,0],[0,0]],[[1,1],[1,2],[2,2],[2,1],[1,1]],[[3,3],[3,4],[4,4],[4,3],[3,3]]]]}", this.geoJsonBuffer.toString() );
}
public void testGeometryCollection()
{
LinearRing exterior = this.geometryFactory.createLinearRing( Utils.createBoxCoords( 0, 5, 0, 5 ) );
LinearRing hole1 = this.geometryFactory.createLinearRing( Utils.createBoxCoords( 1, 2, 1, 2 ) );
LinearRing hole2 = this.geometryFactory.createLinearRing( Utils.createBoxCoords( 3, 4, 3, 4 ) );
Geometry polygon = this.geometryFactory.createPolygon( exterior, new LinearRing[]{ hole1, hole2 } );
Geometry point = this.geometryFactory.createPoint( new Coordinate( 50.6, 124.59 ) );
Geometry line = this.geometryFactory.createLineString( new Coordinate[]{ new Coordinate( 34.474, 843.487 ),