Revision 33302 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/saveraster/ui/listener/SaveRasterDialogListener.java
SaveRasterDialogListener.java | ||
---|---|---|
161 | 161 |
|
162 | 162 |
// Controlamos el tama?o en caso de un jpeg2000 |
163 | 163 |
long bytes = RasterUtilities.getBytesFromRaster((int)dimension.getWidth(), |
164 |
(int)dimension.getHeight(), |
|
165 |
0, |
|
166 |
3); |
|
164 |
(int)dimension.getHeight(), 0, 3); |
|
165 |
|
|
167 | 166 |
long maxJp2 = 13000 * 12500 * 3; |
168 |
if (fName.endsWith(".jp2")){ |
|
169 |
if (bytes > maxJp2){ |
|
170 |
RasterToolsUtil.messageBoxInfo("output_file_too_big_jpeg2000", null);
|
|
171 |
return false; |
|
167 |
if (fName.endsWith(".jp2")) {
|
|
168 |
if (bytes > maxJp2) {
|
|
169 |
if(!RasterToolsUtil.messageBoxYesOrNot("output_file_too_big_jpeg2000", null))
|
|
170 |
return false;
|
|
172 | 171 |
} |
173 | 172 |
} |
174 | 173 |
|
Also available in: Unified diff