|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVectorLayer
This is the base interface that all vector layers have to implement
to be able to be used by SEXTANTE algorithms.
Instead of implementing this class directly, it is recommended to
extend AbstractVectorLayer
.
Field Summary | |
---|---|
static int |
SHAPE_TYPE_LINE
|
static int |
SHAPE_TYPE_POINT
|
static int |
SHAPE_TYPE_POLYGON
|
Method Summary | |
---|---|
void |
addFeature(com.vividsolutions.jts.geom.Geometry geometry,
java.lang.Object[] attributes)
Adds a new feature to the layer |
void |
addFeature(IFeature feature)
Adds a new feature to the layer |
int |
getFieldCount()
|
int |
getFieldIndexByName(java.lang.String fieldName)
Returns the index of a field from its name. |
java.lang.String |
getFieldName(int index)
Returns the name of a given field in the attributes table |
java.lang.String[] |
getFieldNames()
Returns the names of the fields in the attributes table |
java.lang.Class |
getFieldType(int index)
Return a class representing the data type of a given field |
java.lang.Class[] |
getFieldTypes()
Returns an array of classes representing the data types of the fields in the attributes table |
int |
getShapesCount()
Returns the number of features in this layer |
int |
getShapeType()
Returns the type of geometries in this layer |
IFeatureIterator |
iterator()
Returns an iterator to iterate through the entities of this layer |
Methods inherited from interface es.unex.sextante.dataObjects.ILayer |
---|
getCRS, getFullExtent |
Methods inherited from interface es.unex.sextante.dataObjects.IDataObject |
---|
close, getBaseDataObject, getFilename, getName, open, postProcess, setName |
Field Detail |
---|
static final int SHAPE_TYPE_POINT
static final int SHAPE_TYPE_LINE
static final int SHAPE_TYPE_POLYGON
Method Detail |
---|
void addFeature(com.vividsolutions.jts.geom.Geometry geometry, java.lang.Object[] attributes)
geometry
- the geometryattributes
- the attributes associated with the geometryvoid addFeature(IFeature feature)
feature
- the feature to addIFeatureIterator iterator()
java.lang.String getFieldName(int index)
index
- the zero-based field index
java.lang.Class getFieldType(int index)
index
- the zero-based field index
int getFieldCount()
java.lang.Class[] getFieldTypes()
java.lang.String[] getFieldNames()
int getShapesCount()
int getShapeType()
int getFieldIndexByName(java.lang.String fieldName)
fieldName
- the name of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |