Revision 20496

View differences:

trunk/extensions/extRasterTools-SE/src-test/org/gvsig/rastertools/clipping/ClippingProcessTest.java
68 68
			clipping(new int[]{0, 1, 2}, false, BufferInterpolation.INTERPOLATION_NearestNeighbour, getColorInterpretation(3));
69 69
			dataset = open(out + ".tif");
70 70
			compareDatasets(lyr.getDataSource(), dataset, new Point2D.Double(coords[0], coords[3]), 1, new int[]{0, 1, 2}, IBuffer.TYPE_BYTE);
71
			dataset.close();
71 72
			
72 73
			//MRSID
73 74
			openLayer(mrsid);
74 75
			clipping(new int[]{0, 1, 2}, false, BufferInterpolation.INTERPOLATION_NearestNeighbour, getColorInterpretation(3));
75 76
			dataset = open(out + ".tif");
76 77
			compareDatasets(lyr.getDataSource(), dataset, new Point2D.Double(coords[0], coords[3]), 1, new int[]{0, 1, 2}, IBuffer.TYPE_BYTE);
78
			dataset.close();
77 79
			
78 80
			//TIF BYTE
79 81
			openLayer(byteImg);
80 82
			clipping(new int[]{0}, false, BufferInterpolation.INTERPOLATION_NearestNeighbour, getColorInterpretation(1));
81 83
			dataset = open(out + ".tif");
82 84
			compareDatasets(lyr.getDataSource(), dataset, new Point2D.Double(coords[0], coords[3]), 1, new int[]{0}, IBuffer.TYPE_BYTE);
85
			dataset.close();
83 86
			
84 87
			//TIF FLOAT
85 88
			openLayer(floatImg);
86 89
			clipping(new int[]{0}, false, BufferInterpolation.INTERPOLATION_NearestNeighbour, getColorInterpretation(1));
87 90
			dataset = open(out + ".tif");
88 91
			compareDatasets(lyr.getDataSource(), dataset, new Point2D.Double(coords[0], coords[3]), 1, new int[]{0}, IBuffer.TYPE_FLOAT);
89
			
92
			dataset.close();
90 93
		}
91 94
		
92 95
		/**

Also available in: Unified diff