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