Revision 28487
trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/saveraster/ui/listener/SaveRasterDialogListener.java | ||
---|---|---|
110 | 110 |
Dimension dimension = new Dimension((int)dialog.getDataInputListener().getWidthInPixels(), |
111 | 111 |
(int)dialog.getDataInputListener().getHeightInPixels() ); |
112 | 112 |
|
113 |
//Limitamos el tama?o |
|
114 |
if(dialog.getDataInputListener().getWidthInPixels() > 20000 || dialog.getDataInputListener().getHeightInPixels() > 20000) { |
|
115 |
RasterToolsUtil.messageBoxInfo("output_file_too_big", dialog); |
|
116 |
return false; |
|
117 |
} |
|
118 |
|
|
113 | 119 |
//Comprobamos que el en la ruta de destino tengamos permisos de escritura |
114 | 120 |
File f = new File(fName); |
115 | 121 |
if(f.exists()) |
... | ... | |
130 | 136 |
double lrY = Double.parseDouble(controlPanel.getTInfDerY().getValue()); |
131 | 137 |
double ulX = Double.parseDouble(controlPanel.getTSupIzqX().getValue()); |
132 | 138 |
double ulY = Double.parseDouble(controlPanel.getTSupIzqY().getValue()); |
139 |
|
|
133 | 140 |
double width = 0; |
134 |
if(ulX > lrX) width = (double)(ulX - lrX); |
|
135 |
else width = (double)(lrX - ulX); |
|
141 |
if(ulX > lrX) |
|
142 |
width = (double)(ulX - lrX); |
|
143 |
else |
|
144 |
width = (double)(lrX - ulX); |
|
145 |
|
|
136 | 146 |
double height = 0; |
137 |
if(ulY > lrY) height = (double)(ulY - lrY); |
|
138 |
else height = (double)(lrY - ulY); |
|
147 |
if(ulY > lrY) |
|
148 |
height = (double)(ulY - lrY); |
|
149 |
else |
|
150 |
height = (double)(lrY - ulY); |
|
151 |
|
|
139 | 152 |
Rectangle2D ext = null; |
140 | 153 |
|
141 | 154 |
if(ulY < lrY) |
trunk/extensions/extRasterTools-SE/config/text_en.properties | ||
---|---|---|
186 | 186 |
file_doesn_exists= |
187 | 187 |
file_size_in_bytes=File size |
188 | 188 |
file_too_big=Input raster is too big to create a TIFF file (> 4GB).\n The result of the process will be compress to JPEG2000. |
189 |
output_file_too_big=Output image is too big. |
|
189 | 190 |
files=Files |
190 | 191 |
filter_raster_again=Would you like to process raster again? |
191 | 192 |
filtro_de=Filter of |
trunk/extensions/extRasterTools-SE/config/text.properties | ||
---|---|---|
187 | 187 |
file_doesn_exists= |
188 | 188 |
file_size_in_bytes=Tama\u00f1o del fichero |
189 | 189 |
file_too_big=El raster de entrada es demasiado grande para generar un TIFF con el (> 4GB).\n El resultado de la salida al aplicar el proceso ser\u00e1 comprimido a JPEG2000. |
190 |
output_file_too_big=La imagen de salida es demasiado grande.\n Revise los par?metros. |
|
190 | 191 |
files=Archivos |
191 | 192 |
filter_raster_again=\u00bfDes\u00e9a aplicar el preproceso nuevamente? |
192 | 193 |
filtro_de=Filtro de |
Also available in: Unified diff