Revision 4089 org.gvsig.raster.gdal/trunk/org.gvsig.raster.gdal/org.gvsig.raster.gdal.io/src/main/java/org/gvsig/raster/gdal/io/GdalNative.java
GdalNative.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import org.gdal.gdal.Dataset; |
34 | 34 |
import org.gdal.gdal.gdal; |
35 |
import org.gdal.gdal.gdalJNI;
|
|
36 |
import org.gdal.ogr.ogrJNI;
|
|
35 |
import org.gdal.gdal.gdal; |
|
36 |
import org.gdal.ogr.ogr; |
|
37 | 37 |
import org.gvsig.fmap.dal.coverage.RasterLibrary; |
38 | 38 |
import org.gvsig.fmap.dal.coverage.RasterLocator; |
39 | 39 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
... | ... | |
180 | 180 |
} |
181 | 181 |
|
182 | 182 |
private static long initializeGdal(String fName) throws GdalException { |
183 |
gdalJNI.AllRegister();
|
|
184 |
ogrJNI.RegisterAll();
|
|
183 |
gdal.AllRegister(); |
|
184 |
ogr.RegisterAll(); |
|
185 | 185 |
Dataset data = gdal.Open(fName, 1); |
186 | 186 |
if (data == null) |
187 | 187 |
throw new GdalException("Error en la apertura del fichero. El fichero no tiene un formato v?lido."); |
... | ... | |
196 | 196 |
// } |
197 | 197 |
|
198 | 198 |
private void init(String fName) throws GdalException, IOException { |
199 |
gdalJNI.AllRegister();
|
|
200 |
ogrJNI.RegisterAll();
|
|
199 |
gdal.AllRegister(); |
|
200 |
ogr.RegisterAll(); |
|
201 | 201 |
fileName = fName; |
202 | 202 |
open(fName, GA_ReadOnly); |
203 | 203 |
open = true; |
Also available in: Unified diff