public class OGRVectorDataBase
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
构造器和说明 |
---|
OGRVectorDataBase(long cPtr,
boolean cMemoryOwn) |
OGRVectorDataBase(java.lang.String fileName,
boolean writable)
Constructs a new OGR database instance given OGR supported data file.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
createLayer(java.lang.String name,
int epsgCode,
OGRGeometryType geometryType)
Creates a new layer on top of existing layers.
|
void |
delete() |
boolean |
deleteLayer(int index)
Deletes an existing layer.
|
protected void |
finalize() |
static java.lang.String |
getConfigOption(java.lang.String name)
Returns the value of global OGR configuration option.
|
static long |
getCPtr(OGRVectorDataBase obj) |
int |
getLayerCount()
Returns the total layer count for this database.
|
StringVector |
getLayerNames()
Returns the names of all layers in the database.
|
static void |
setConfigOption(java.lang.String name,
java.lang.String value)
Sets global OGR configuration option.
|
static OGRVectorDataBase |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
boolean |
testCapability(java.lang.String capability)
Tests the database capability.
|
public OGRVectorDataBase(long cPtr, boolean cMemoryOwn)
public OGRVectorDataBase(java.lang.String fileName, boolean writable) throws java.io.IOException
fileName
- The full path of the data filewritable
- True when the database supports write operations. False when only read-only access is needed.java.lang.Exception
- If the the file could not be opened or created.java.io.IOException
public static long getCPtr(OGRVectorDataBase obj)
protected void finalize()
finalize
在类中 java.lang.Object
public void delete()
public static OGRVectorDataBase swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public int getLayerCount()
public StringVector getLayerNames()
public boolean createLayer(java.lang.String name, int epsgCode, OGRGeometryType geometryType)
name
- The name for the new layer.epsgCode
- EPSG code for geometry data (3857, for example)geometryType
- The geometry type for the layer.public boolean deleteLayer(int index)
index
- The layer index to delete.public boolean testCapability(java.lang.String capability)
capability
- The name of the capability (for example, "CreateLayer", "DeleteLayer")public static void setConfigOption(java.lang.String name, java.lang.String value)
name
- The name of the option parameter to set ("SHAPE_ENCODING", for example)value
- The value of the parameter.public static java.lang.String getConfigOption(java.lang.String name)
name
- The name of the the option parameter to read.public java.lang.String swigGetClassName()
public java.lang.Object swigGetDirectorObject()