Revision 6327 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/BufferManager.java
BufferManager.java | ||
---|---|---|
56 | 56 |
* @return NoData |
57 | 57 |
*/ |
58 | 58 |
public NoData createNoData(Number value, Number defaultValue); |
59 |
|
|
59 |
|
|
60 | 60 |
/** |
61 | 61 |
* Creates {@link BandInfo} with information about one band. |
62 |
* @param band |
|
62 |
* |
|
63 |
* @param band |
|
63 | 64 |
* Band of this {@link BandInfo} |
64 | 65 |
* @param name |
65 | 66 |
* Band name |
66 | 67 |
* @param description |
67 | 68 |
* Description of band |
69 |
* @param dataType |
|
70 |
* Data type of band. See {@link BufferManager} to check types. |
|
68 | 71 |
* @param values |
69 | 72 |
* A key-value map with information properties about band |
70 | 73 |
* @return BandInfo |
71 | 74 |
*/ |
72 |
public BandInfo createBandInfo(int band, String name, String description, |
|
75 |
public BandInfo createBandInfo(int band, String name, String description, int dataType,
|
|
73 | 76 |
List<Map.Entry<Object, Object>> values); |
74 | 77 |
|
75 | 78 |
/** |
... | ... | |
97 | 100 |
* @see BufferManager#createBandInfo(String, String, List) |
98 | 101 |
* @see BufferManager#createSimpleBandPageManager(File, int, int, int) |
99 | 102 |
*/ |
100 |
public Band createBand(int dataType, int rows, int columns, NoData noData, PageManager pageManager) throws BandException; |
|
103 |
public Band createBand(int dataType, int rows, int columns, NoData noData, |
|
104 |
PageManager pageManager) throws BandException; |
|
101 | 105 |
|
102 | 106 |
/** |
103 | 107 |
* Creates a memory buffer. |
... | ... | |
117 | 121 |
* @throws BufferException |
118 | 122 |
* If there is any problem creating buffer. |
119 | 123 |
*/ |
120 |
Buffer createBuffer(int rows, int columns, int[] bandDataTypes, IProjection projection) throws BufferException; |
|
124 |
Buffer createBuffer(int rows, int columns, int[] bandDataTypes, IProjection projection) |
|
125 |
throws BufferException; |
|
121 | 126 |
|
122 | 127 |
/** |
123 | 128 |
* Creates a memory buffer. |
... | ... | |
140 | 145 |
* @throws BufferException |
141 | 146 |
* If there is any problem creating buffer. |
142 | 147 |
*/ |
143 |
Buffer createBuffer(int rows, int columns, int[] bandDataTypes, NoData[] bandNodata, IProjection projection)
|
|
144 |
throws BufferException; |
|
148 |
Buffer createBuffer(int rows, int columns, int[] bandDataTypes, NoData[] bandNodata, |
|
149 |
IProjection projection) throws BufferException;
|
|
145 | 150 |
|
146 | 151 |
/** |
147 | 152 |
* Creates a memory buffer. |
... | ... | |
167 | 172 |
* @throws BufferException |
168 | 173 |
* If there is any problem creating buffer. |
169 | 174 |
*/ |
170 |
Buffer createBuffer(int rows, int columns, int[] bandDataTypes, NoData[] bandNodata, IProjection projection,
|
|
171 |
Envelope envelope) throws BufferException; |
|
172 |
|
|
175 |
Buffer createBuffer(int rows, int columns, int[] bandDataTypes, NoData[] bandNodata, |
|
176 |
IProjection projection, Envelope envelope) throws BufferException;
|
|
177 |
|
|
173 | 178 |
/** |
174 | 179 |
* Creates a buffer. Buffer bands will be paginated using |
175 | 180 |
* {@link BandPageManager}. |
... | ... | |
223 | 228 |
* @return BandPageManager |
224 | 229 |
* @throws IOException |
225 | 230 |
*/ |
226 |
public PageManager createSimpleBandPageManager(File file, int rows, int columns, int dataType) throws IOException; |
|
231 |
public PageManager createSimpleBandPageManager(File file, int rows, int columns, int dataType) |
|
232 |
throws IOException; |
|
227 | 233 |
|
228 | 234 |
/** |
229 | 235 |
* |
... | ... | |
234 | 240 |
* @return A list of page managers |
235 | 241 |
* @throws IOException |
236 | 242 |
*/ |
237 |
public List<PageManager> createSimpleBandPageManagerList(File[] files, int rows, int columns, int[] dataType)
|
|
238 |
throws IOException; |
|
243 |
public List<PageManager> createSimpleBandPageManagerList(File[] files, int rows, int columns, |
|
244 |
int[] dataType) throws IOException;
|
|
239 | 245 |
|
240 | 246 |
/** |
241 | 247 |
* @param dataType |
... | ... | |
252 | 258 |
* @param buffer |
253 | 259 |
* @param band |
254 | 260 |
* @return Band |
255 |
* @throws BandException
|
|
261 |
* @throws BandException |
|
256 | 262 |
*/ |
257 | 263 |
public Band createClippedBand(Buffer buffer, Band band) throws BandException; |
258 | 264 |
|
Also available in: Unified diff