MCPcopy Create free account
hub / github.com/OSGeo/gdal / GetDriver

Method GetDriver

swig/java/javadoc.java:1230–1254  ·  view source on GitHub ↗
(int iDriver)

Source from the content-addressed store, hash-verified

1228 * @return the driver identified by the index or null if the index is invalid
1229 */
1230public class gdal:public static Driver GetDriver(int iDriver)
1231
1232/**
1233 * Open a raster file as a Dataset object.
1234 * <p>
1235 * This function will try to open the passed file, or virtual dataset
1236 * name by invoking the Open method of each registered Driver in turn.
1237 * The first successful open will result in a returned dataset. If all
1238 * drivers fail then null is returned.
1239 * <p>
1240 * It is required that you explicitly close a dataset opened in update
1241 * mode with the Dataset.delete() method. Otherwise the data might not be
1242 * flushed to the disk. Don't rely only on Java garbage collection.
1243 *
1244 * @param name the name of the file to access. In the case of
1245 * exotic drivers this may not refer to a physical file, but instead contain
1246 * information for the driver on how to access a dataset.
1247 *
1248 * @param eAccess the desired access, either gdalconst.GA_Update or gdalconst.GA_ReadOnly. Many
1249 * drivers support only read only access.
1250 *
1251 * @return A Dataset object or null on failure.
1252 *
1253 * @see #OpenShared(String name, int eAccess)
1254 */
1255public class gdal:public static Dataset Open(String name, int eAccess)
1256
1257/**

Callers 15

UsageFormatFunction · 0.45
ogrmergeFunction · 0.45
mainFunction · 0.45
reproject_datasetFunction · 0.45
gdal_editFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
jpeg_in_tiff_extractFunction · 0.45
mainFunction · 0.45
validateFunction · 0.45
mainFunction · 0.45
GetOutputDriversForFunction · 0.45

Calls

no outgoing calls

Tested by 1

openFileMethod · 0.36