Revision 9523 branches/piloto3d/libraries/libCq CMS for java.old/src/org/cresques/io/JpegWriter.java

View differences:

JpegWriter.java
28 28

  
29 29
import org.cresques.cts.IProjection;
30 30
import org.cresques.geo.ViewPortData;
31
import org.cresques.i18n.Messages;
32
import org.cresques.io.data.WriterSupportOptions;
33 31
import org.cresques.px.PxRaster;
34 32

  
35 33
import es.gva.cit.jgdal.Gdal;
......
121 119
     					ViewPortData vp,
122 120
     					Integer compresion,
123 121
     					Integer outSizeX,
124
     					Integer outSizeY)throws GdalException, IOException {
122
     					Integer outSizeY,
123
     					Integer dataType)throws GdalException, IOException {
125 124
    	ident = outFileName.toLowerCase().substring(outFileName.lastIndexOf(".") + 1);
126 125
    	driver = (String)typeList.get(ident);
127 126
    	support = new JpegSupportOptions(driver);
......
130 129
    	outTif = outTif + "tif";
131 130
    	this.viewPort = vp;
132 131
    	gdalWriter = new GdalWriter(dataWriter, outTif, blockSize, nBands, 
133
    								vp, compresion, outSizeX, outSizeY);
132
    								vp, compresion, outSizeX, outSizeY, dataType);
134 133
    	gdalWriter.getSupport().setTfw(true);
135 134
    	setParams();
136 135
    }
......
277 276
                       "\" border=\"yes\">");
278 277

  
279 278
        options.append("<panel layout=\"FlowLayout\" position=\"North\" align=\"left\">");
280
        options.append("<label>"+Messages.getText("Block_Size_")+"</label>");
279
        options.append("<label>Block size:</label>");
281 280
        options.append("<combo ident=\"BLOCKSIZE\" selected=\"" +
282 281
        		gdalWriter.getSupport().getBlockSize() + "\">");
283 282

  
......
305 304
        
306 305

  
307 306
        options.append("<panel layout=\"FlowLayout\" position=\"South\" align=\"left\">");
308
        options.append("<label>"+Messages.getText("Progressive_")+"</label>");
307
        options.append("<label>Progressive:</label>");
309 308
        String sel = null;
310 309
        if (support.isProgressive()) {
311 310
            sel = new String("yes");

Also available in: Unified diff