|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gdal.ogr.Driver
public class Driver
Class Driver is an uninstanciable class providing various methods to represents an operational format driver.
The Driver class is a binding for the C++ OGRSFDriver class.
Method Summary | |
---|---|
DataSource |
CopyDataSource(DataSource src_ds,
String name)
Creates a new datasource by copying all the layers from the source datasource. |
DataSource |
CopyDataSource(DataSource src_ds,
String name,
Vector options)
Creates a new datasource by copying all the layers from the source datasource. |
DataSource |
CreateDataSource(String name)
Attempt to create a new data source based on the passed driver. |
DataSource |
CreateDataSource(String name,
Vector options)
Attempt to create a new data source based on the passed driver. |
void |
delete()
Deprecated. Do not do anything... |
int |
DeleteDataSource(String name)
Destroy a datasource. |
boolean |
equals(Object obj)
|
String |
getName()
Fetch name of driver (file format). |
String |
GetName()
Fetch name of driver (file format). |
int |
hashCode()
|
DataSource |
Open(String name)
Attempt to open file with this driver. |
DataSource |
Open(String name,
int update)
Attempt to open file with this driver. |
boolean |
TestCapability(String cap)
Test if capability is available. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void delete()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName()
public DataSource CreateDataSource(String name, Vector options)
The returned dataset should be properly closed with the DataSource.delete() method.
name
- the name for the new data source.options
- a vector of strings of the format name=value. Options are driver
specific, and driver information can be found at the following url:
OGR Formats
public DataSource CreateDataSource(String name)
CreateDataSource(String name, java.util.Vector options)
public DataSource CopyDataSource(DataSource src_ds, String name, Vector options)
src_ds
- source datasourcename
- the name for the new data source.options
- a vector of strings of the format name=value. Options are driver
specific, and driver information can be found at the following url:
OGR Formats
public DataSource CopyDataSource(DataSource src_ds, String name)
CreateDataSource(String name, java.util.Vector options)
public DataSource Open(String name, int update)
The returned dataset should be properly closed with the DataSource.delete() method.
name
- the name of the file, or data source to try and open.update
- 1 if update access is required, otherwise 0 (the
default).
public DataSource Open(String name)
Open(String name, int update)
public int DeleteDataSource(String name)
Whether this is a supported operation on this driver case be tested using TestCapability() on ODrCDeleteDataSource.
name
- the name of the datasource to delete.
public boolean TestCapability(String cap)
The constant forms of the capability names should be used in preference to the strings themselves to avoid mispelling.
cap
- the capability to test.
public String GetName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |