root / trunk / libraries / libRaster / src / org / gvsig / raster / driver / WriterSupportOptions.java @ 10740
History | View | Annotate | Download (2.73 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2006 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*/
|
19 |
package org.gvsig.raster.driver; |
20 |
|
21 |
|
22 |
/**
|
23 |
* Opciones soportadas por los drivers de escritura
|
24 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
25 |
*/
|
26 |
public class WriterSupportOptions { |
27 |
private String extension = null; |
28 |
private String[] blockSizeList = { |
29 |
"1", "8", "16", "32", "64", "128", |
30 |
"256", "512", "1024" |
31 |
}; |
32 |
private boolean georef = true; |
33 |
private int blockSizeDefault = 1; |
34 |
|
35 |
/**
|
36 |
* Constructor
|
37 |
* @param extension Extensi?n del driver
|
38 |
*/
|
39 |
public WriterSupportOptions(String extension) { |
40 |
this.extension = extension;
|
41 |
} |
42 |
|
43 |
/**
|
44 |
* Asigna el tama?o de bloque que se lee de una vez en la imagen origen
|
45 |
* @param blockSize Tama?o de bloque
|
46 |
*/
|
47 |
public void setBlockSize(int blockSize) { |
48 |
this.blockSizeDefault = blockSize;
|
49 |
} |
50 |
|
51 |
/**
|
52 |
* Se asigna true o false si se desea o no que el fichero de salida tenga georeferenciaci?n.
|
53 |
* @param geor true salva con georeferenciaci?n
|
54 |
*/
|
55 |
public void setWriteGeoref(boolean geor) { |
56 |
this.georef = geor;
|
57 |
} |
58 |
|
59 |
/**
|
60 |
* Obtiene el valor del flag que dice si se desea o no salvar con georeferenciaci?n
|
61 |
* @return true si se desea salvar con georeferenciaci?n
|
62 |
*/
|
63 |
public boolean getGeoref() { |
64 |
return georef;
|
65 |
} |
66 |
|
67 |
/**
|
68 |
* Obtiene el tama?o de bloque seleccionado
|
69 |
* @return Tama?o de bloque
|
70 |
*/
|
71 |
public int getBlockSize() { |
72 |
return blockSizeDefault;
|
73 |
} |
74 |
|
75 |
/**
|
76 |
* Obtiene la extensi?n del driver
|
77 |
* @return Extensi?n del driver
|
78 |
*/
|
79 |
public String getExtension() { |
80 |
return extension;
|
81 |
} |
82 |
|
83 |
/**
|
84 |
* Obtiene la lista de tama?os de bloque posible
|
85 |
* @return Lista de tama?os de bloque
|
86 |
*/
|
87 |
public String[] getBlockSizeList() { |
88 |
return blockSizeList;
|
89 |
} |
90 |
} |