Revision 33299

View differences:

branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/rastertools/saveas/SaveAsTocMenuEntry.java
225 225
						(int) ((IRasterOperations) fLayer).getPxHeight(),
226 226
						((IRasterGeoOperations) fLayer).getDataType()[0],
227 227
						((IRasterOperations) fLayer).getBandCount());
228
				
228 229
				long maxJp2 = 13000 * 12500 * 3;
229
				if (bytes > (20000*20000*3)){
230
				if (bytes > (20000 * 20000 * 3)) {
230 231
					RasterToolsUtil.messageBoxInfo("output_file_too_big", null);
231
					return;
232 232
				}
233
				if (file.endsWith(".jp2")){
234
					if (bytes > maxJp2){
233
				if (file.endsWith(".jp2")) {
234
					if (bytes > maxJp2) {
235 235
						RasterToolsUtil.messageBoxInfo("output_file_too_big_jpeg2000", null);
236
						return;
237 236
					}
238 237
				}
239 238
				

Also available in: Unified diff