Revision 22422 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/io/GdalWriter.java
GdalWriter.java | ||
---|---|---|
44 | 44 |
import org.gvsig.raster.process.RasterTask; |
45 | 45 |
import org.gvsig.raster.process.RasterTaskQueue; |
46 | 46 |
import org.gvsig.raster.util.RasterUtilities; |
47 |
import org.gvsig.raster.util.extensionPoints.ExtensionPoints; |
|
48 |
import org.gvsig.raster.util.extensionPoints.ExtensionPointsSingleton; |
|
47 |
import org.gvsig.raster.util.extensionPoints.ExtensionPoint; |
|
49 | 48 |
|
50 | 49 |
import es.gva.cit.jecwcompress.EcwException; |
51 | 50 |
import es.gva.cit.jgdal.Gdal; |
... | ... | |
73 | 72 |
public class GdalWriter extends GeoRasterWriter { |
74 | 73 |
|
75 | 74 |
public static void register() { |
76 |
ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance();
|
|
77 |
|
|
78 |
extensionPoints.add("RasterWriter", "tif", GdalWriter.class);
|
|
75 |
ExtensionPoint point = ExtensionPoint.getExtensionPoint("RasterWriter");
|
|
76 |
|
|
77 |
point.register("tif", GdalWriter.class);
|
|
79 | 78 |
fileFeature.put("tif", new GTiffFeatures()); |
80 | 79 |
|
81 |
extensionPoints.add("RasterWriter", "img", GdalWriter.class);
|
|
80 |
point.register("img", GdalWriter.class);
|
|
82 | 81 |
fileFeature.put("img", new HFAFeatures()); |
83 | 82 |
|
84 |
extensionPoints.add("RasterWriter", "bmp", GdalWriter.class);
|
|
83 |
point.register("bmp", GdalWriter.class);
|
|
85 | 84 |
fileFeature.put("bmp", new BMPFeatures()); |
86 | 85 |
|
87 |
extensionPoints.add("RasterWriter", "pgm", GdalWriter.class);
|
|
86 |
point.register("pgm", GdalWriter.class);
|
|
88 | 87 |
fileFeature.put("pgm", new PNM_PgmFeatures()); |
89 | 88 |
|
90 |
extensionPoints.add("RasterWriter", "ppm", GdalWriter.class);
|
|
89 |
point.register("ppm", GdalWriter.class);
|
|
91 | 90 |
fileFeature.put("ppm", new PNM_PpmFeatures()); |
92 | 91 |
|
93 |
extensionPoints.add("RasterWriter", "mpl", GdalWriter.class);
|
|
92 |
point.register("mpl", GdalWriter.class);
|
|
94 | 93 |
fileFeature.put("mpl", new ILWIS_MprFeatures()); |
95 | 94 |
|
96 |
extensionPoints.add("RasterWriter", "rst", GdalWriter.class);
|
|
95 |
point.register("rst", GdalWriter.class);
|
|
97 | 96 |
fileFeature.put("rst", new IDRISIFeatures()); |
98 | 97 |
|
99 | 98 |
//La exportaci?n no es correcta del todo |
100 |
//extensionPoints.add("RasterWriter", "rmf", GdalWriter.class);
|
|
99 |
//point.register("rmf", GdalWriter.class);
|
|
101 | 100 |
//fileFeature.put("rmf", new RMFFeatures()); |
102 | 101 |
|
103 | 102 |
//No salva datos. Siempre sale negra la imagen |
104 |
//extensionPoints.add("RasterWriter", "aux", GdalWriter.class);
|
|
103 |
//point.register("aux", GdalWriter.class);
|
|
105 | 104 |
//fileFeature.put("aux", new PAuxFeatures()); |
106 | 105 |
} |
107 | 106 |
|
Also available in: Unified diff