Revision 5495
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/test/java/org/gvsig/raster/lib/buffer/api/BandTest.java | ||
---|---|---|
1 |
package org.gvsig.raster.lib.buffer.api; |
|
2 |
|
|
3 |
import static org.junit.Assert.*; |
|
4 |
|
|
5 |
import org.gvsig.raster.lib.buffer.api.exceptions.BandException; |
|
6 |
import org.junit.Test; |
|
7 |
|
|
8 |
|
|
9 |
public class BandTest { |
|
10 |
|
|
11 |
private static final int ROWS=5; |
|
12 |
private static final int COLUMNS=10; |
|
13 |
private Band testBand1; |
|
14 |
|
|
15 |
private void init(){ |
|
16 |
|
|
17 |
BufferManager bufferManager = RasterLocator.getBufferManager(); |
|
18 |
NoData noData=bufferManager.createNoData(Double.NaN, Double.NaN); |
|
19 |
try { |
|
20 |
testBand1=bufferManager.createBand(BufferManager.TYPE_DOUBLE, ROWS, COLUMNS, noData, null); |
|
21 |
} catch (BandException e) { |
|
22 |
fail("Failed creating testBand1"); |
|
23 |
} |
|
24 |
testBand1.fill(0); |
|
25 |
} |
|
26 |
|
|
27 |
@Test |
|
28 |
public void testGetColumns() { |
|
29 |
init(); |
|
30 |
fail("Not yet implemented"); |
|
31 |
} |
|
32 |
|
|
33 |
@Test |
|
34 |
public void testGetRows() { |
|
35 |
fail("Not yet implemented"); |
|
36 |
} |
|
37 |
|
|
38 |
@Test |
|
39 |
public void testGetDataType() { |
|
40 |
fail("Not yet implemented"); |
|
41 |
} |
|
42 |
|
|
43 |
@Test |
|
44 |
public void testGetNoData() { |
|
45 |
fail("Not yet implemented"); |
|
46 |
} |
|
47 |
|
|
48 |
@Test |
|
49 |
public void testGet() { |
|
50 |
fail("Not yet implemented"); |
|
51 |
} |
|
52 |
|
|
53 |
@Test |
|
54 |
public void testSet() { |
|
55 |
fail("Not yet implemented"); |
|
56 |
} |
|
57 |
|
|
58 |
@Test |
|
59 |
public void testFill() { |
|
60 |
fail("Not yet implemented"); |
|
61 |
} |
|
62 |
|
|
63 |
@Test |
|
64 |
public void testCopyFrom() { |
|
65 |
fail("Not yet implemented"); |
|
66 |
} |
|
67 |
|
|
68 |
@Test |
|
69 |
public void testCreateRowBuffer() { |
|
70 |
fail("Not yet implemented"); |
|
71 |
} |
|
72 |
|
|
73 |
@Test |
|
74 |
public void testFetchRow() { |
|
75 |
fail("Not yet implemented"); |
|
76 |
} |
|
77 |
|
|
78 |
@Test |
|
79 |
public void testPutRow() { |
|
80 |
fail("Not yet implemented"); |
|
81 |
} |
|
82 |
|
|
83 |
@Test |
|
84 |
public void testClone() { |
|
85 |
fail("Not yet implemented"); |
|
86 |
} |
|
87 |
|
|
88 |
} |
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/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.fmap.geom.RasterLibrary |
|
1 |
org.gvsig.raster.lib.buffer.api.BufferLibrary |
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.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.raster.lib.buffer.impl.DefaultBufferLibrary |
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.impl/src/main/java/org/gvsig/raster/lib/buffer/impl/DefaultBufferLibrary.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.raster.lib.buffer.impl; |
|
24 |
import org.gvsig.raster.lib.buffer.api.RasterLibrary; |
|
25 |
import org.gvsig.raster.lib.buffer.api.RasterLocator; |
|
26 |
import org.gvsig.tools.library.AbstractLibrary; |
|
27 |
import org.gvsig.tools.library.LibraryException; |
|
28 |
|
|
29 |
|
|
30 |
/** |
|
31 |
* Defines library for bing maps |
|
32 |
* @author daniel |
|
33 |
* |
|
34 |
*/ |
|
35 |
public class DefaultBufferLibrary extends AbstractLibrary{ |
|
36 |
@Override |
|
37 |
public void doRegistration() { |
|
38 |
registerAsImplementationOf(RasterLibrary.class); |
|
39 |
} |
|
40 |
|
|
41 |
@Override |
|
42 |
protected void doInitialize() throws LibraryException { |
|
43 |
RasterLocator.registerBufferManager(DefaultBufferManager.class); |
|
44 |
} |
|
45 |
|
|
46 |
@Override |
|
47 |
protected void doPostInitialize() throws LibraryException { |
|
48 |
//Do nothing |
|
49 |
} |
|
50 |
} |
Also available in: Unified diff