|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gdal.ogr.FeatureDefn
public class FeatureDefn
Definition of a feature class or feature layer.
The FeatureDefn class is a binding for the C++ OGRFeatureDefn class.
This object contains schema information for a set of Feature. In table based systems, a FeatureDefn is essentially a layer. In more object oriented approaches (such as SF CORBA) this can represent a class of features but doesn't necessarily relate to all of a layer, or just one layer.
This object also can contain some other information such as a name, the base geometry type and potentially other metadata.
It is reasonable for different translators to derive classes from FeatureDefn with additional translator specific information.
Constructor Summary | |
---|---|
FeatureDefn()
Constructor. |
|
FeatureDefn(String name)
Constructor. |
Method Summary | |
---|---|
void |
AddFieldDefn(FieldDefn defn)
Add a new field definition. |
void |
delete()
|
boolean |
equals(Object obj)
|
int |
GetFieldCount()
Fetch number of fields on this feature. |
FieldDefn |
GetFieldDefn(int ifield)
Fetch field definition. |
int |
GetFieldIndex(String name)
Find field by name. |
int |
GetGeomType()
Fetch the geometry base type. |
String |
GetName()
Get name of this FeatureDefn. |
int |
GetReferenceCount()
Fetch current reference count. |
int |
hashCode()
|
void |
SetGeomType(int geom_type)
Assign the base geometry type for this layer. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureDefn(String name)
name
- the name to be assigned to this layer/class. It does not
need to be unique. and may be null.public FeatureDefn()
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 int GetFieldCount()
public FieldDefn GetFieldDefn(int ifield)
ifield
- the field to fetch, between 0 and GetFieldCount()-1.
public int GetFieldIndex(String name)
name
- the field name to search for.
public void AddFieldDefn(FieldDefn defn)
defn
- the definition of the new field.public int GetGeomType()
public void SetGeomType(int geom_type)
geom_type
- the new type to assign.public int GetReferenceCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |