gvsig-raster / org.gvsig.raster.ermapper / trunk / org.gvsig.raster.ermapper / org.gvsig.raster.ermapper.jni / src / test / java / com / ermapper / ecw / TestReadEcw.java @ 2449
History | View | Annotate | Download (1.13 KB)
1 |
package com.ermapper.ecw; |
---|---|
2 |
|
3 |
import junit.framework.TestCase; |
4 |
|
5 |
public class TestReadEcw extends TestCase{ |
6 |
|
7 |
private JNCSFile file = null; |
8 |
|
9 |
private String fileName = "miniraster30x30.jp2"; |
10 |
private String baseDir = "./test-images/"; |
11 |
private String file1 = baseDir + fileName; |
12 |
|
13 |
private int numBands = 0; |
14 |
private int width = 0; |
15 |
private int height = 0; |
16 |
private String projection = null; |
17 |
|
18 |
|
19 |
public void start(){ |
20 |
setUp(); |
21 |
testStack(); |
22 |
} |
23 |
|
24 |
public void setUp(){ |
25 |
try {
|
26 |
System.out.println("***** TEST DE ACCESO A ECW *****"); |
27 |
System.out.println(" IMAGEN: " + fileName + "\n"); |
28 |
file = new JNCSFile();
|
29 |
file.open(file1, true);
|
30 |
System.out.println("Acedo a algunos datos de la imagen: "); |
31 |
numBands = file.numBands; |
32 |
height = file.height; |
33 |
width = file.width; |
34 |
projection = file.projection; |
35 |
System.out.println("Número de bandas: " + numBands); |
36 |
System.out.println("Alto: " + height); |
37 |
System.out.println("Ancho: " + width); |
38 |
System.out.println("Proyección: " + projection); |
39 |
|
40 |
} catch (JNCSException e) {
|
41 |
e.printStackTrace(); |
42 |
} |
43 |
} |
44 |
|
45 |
public void testStack(){ |
46 |
|
47 |
} |
48 |
|
49 |
} |