Revision 10877 trunk/extensions/extRasterTools-SE/src-test/org/gvsig/rasterTools/properties/panels/TestFLyrRasterSE.java
TestFLyrRasterSE.java | ||
---|---|---|
28 | 28 |
import org.gvsig.raster.shared.RasterLibrary; |
29 | 29 |
|
30 | 30 |
import com.hardcode.driverManager.Driver; |
31 |
import com.hardcode.driverManager.DriverLoadException; |
|
31 | 32 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
32 | 33 |
import com.iver.cit.gvsig.project.Project; |
33 | 34 |
/** |
... | ... | |
60 | 61 |
public void testStack() { |
61 | 62 |
RasterSEDriver rasterDriver = new RasterSEDriver(); |
62 | 63 |
|
64 |
//TODO: Quiz?s lo mejor ser?a que te montaras un directorio con los drivers. Es posible que |
|
65 |
//podamos cambiar test-images por test-data y meterlo dentro junto con imagenes de prueba |
|
63 | 66 |
String driversPath = "../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"; |
64 | 67 |
|
65 | 68 |
LayerFactory.setDriversPath(driversPath); |
66 | 69 |
|
67 |
Driver driver = LayerFactory.getDM().getDriver(rasterDriver.getName()); |
|
70 |
Driver driver = null;; |
|
71 |
try { |
|
72 |
driver = LayerFactory.getDM().getDriver(rasterDriver.getName()); |
|
73 |
} catch (DriverLoadException e) { |
|
74 |
e.printStackTrace(); |
|
75 |
} |
|
68 | 76 |
|
69 | 77 |
f = FLyrRasterSE.createLayer("Prueba", (GenericRasterDriver) driver, new File(path1), Project.getDefaultProjection()); |
70 | 78 |
f.addFile(path2); |
Also available in: Unified diff