Revision 463 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.io/org.gvsig.raster.io.base/src/main/java/org/gvsig/fmap/dal/coverage/dataset/io/gdal/GdalProvider.java
GdalProvider.java | ||
---|---|---|
33 | 33 |
import org.gvsig.fmap.dal.DALFileLocator; |
34 | 34 |
import org.gvsig.fmap.dal.DALLocator; |
35 | 35 |
import org.gvsig.fmap.dal.DataStore; |
36 |
import org.gvsig.fmap.dal.coverage.RasterLocator; |
|
36 | 37 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
37 | 38 |
import org.gvsig.fmap.dal.coverage.dataset.io.tile.downloader.FileTileServer; |
38 | 39 |
import org.gvsig.fmap.dal.coverage.datastruct.BandList; |
... | ... | |
103 | 104 |
public static final String FORMAT_ADRG = "ADRG"; |
104 | 105 |
public static final int BAND_HEIGHT = 64; |
105 | 106 |
protected GdalNative file = null; |
106 |
private static String[] formatList = new String[]{ |
|
107 |
private static String[] formatList = new String[] {
|
|
107 | 108 |
"bmp", |
108 | 109 |
"gif", |
109 | 110 |
"tif", |
... | ... | |
144 | 145 |
point = extensionPoints.get("DefaultDriver"); |
145 | 146 |
point.append("reader", "", GdalProvider.class); |
146 | 147 |
|
148 |
RasterLocator.getManager().registerFileProvidersTiled(NAME, GdalProvider.class); |
|
149 |
|
|
147 | 150 |
DataManagerProviderServices dataman = (DataManagerProviderServices) DALLocator.getDataManager(); |
148 | 151 |
if (dataman != null && !dataman.getStoreProviders().contains(NAME)) { |
149 | 152 |
dataman.registerStoreProvider(NAME, |
... | ... | |
159 | 162 |
} |
160 | 163 |
|
161 | 164 |
/** |
162 |
* Adds the list format to the extension point
|
|
165 |
* Adds the list of formats to the extension point
|
|
163 | 166 |
* @param point |
164 | 167 |
*/ |
165 | 168 |
public static void addFormatsToRegistry(ExtensionPoint point, Class<?> c) { |
... | ... | |
168 | 171 |
} |
169 | 172 |
} |
170 | 173 |
|
174 |
/* |
|
175 |
* (non-Javadoc) |
|
176 |
* @see org.gvsig.raster.impl.provider.RasterProvider#registerTileProviderFormats(java.lang.Class) |
|
177 |
*/ |
|
178 |
public void registerTileProviderFormats(Class<RasterProvider> c) { |
|
179 |
ExtensionPointManager extensionPoints = ToolsLocator.getExtensionPointManager(); |
|
180 |
ExtensionPoint point = extensionPoints.get("RasterReader"); |
|
181 |
for (int i = 0; i < formatList.length; i++) { |
|
182 |
point.append(formatList[i], "", c); |
|
183 |
} |
|
184 |
} |
|
185 |
|
|
171 | 186 |
/** |
172 | 187 |
* Returns true if the extension is supported and false if doesn't |
173 | 188 |
* @param ext |
Also available in: Unified diff