public class FlyrVectIVectorLayer
extends es.unex.sextante.dataObjects.AbstractVectorLayer
| Constructor and Description |
|---|
FlyrVectIVectorLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Geometry geom,
Object[] values)
Adds a new feature to the layer
|
boolean |
canBeEdited()
Returns true if the layer can be edited.
|
void |
close()
This method closes the data object, which was opened using the open() method.
|
void |
create(FLyrVect layer) |
void |
create(String sName,
Object inputParams,
int iShapeType,
Class[] types,
String[] sFields,
Object crs,
int[] fieldSize) |
void |
create(String sName,
Object inputParams,
int iShapeType,
Class[] types,
String[] sFields,
Object crs,
int[] fieldSize,
int subtype) |
void |
create(String sName,
String sFilename,
int iShapeType,
Class<?>[] types,
String[] sFields,
Object crs,
int[] fieldSize) |
void |
create(String sName,
String sFilename,
int iShapeType,
Class<?>[] types,
String[] sFields,
Object crs,
int[] fieldSize,
int subtype) |
void |
free()
This method deallocates memory used by the data object.
|
Object |
getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself)
|
Object |
getCRS()
Returns an object with information about the CRS associated to this layer.
|
int |
getDataTypeLength(int dataType)
Returns the length of field
|
FeatureStore |
getFeatureStore() |
int |
getFieldCount() |
int |
getFieldIndexByName(String sFieldName)
Returns the index of a field from its name.
|
String |
getFieldName(int i)
Returns the name of a given field in the attributes table
|
String[] |
getFieldNames()
Returns the names of the fields in the attributes table
|
Class<?> |
getFieldType(int i)
Return a class representing the data type of a given field
|
Class<?>[] |
getFieldTypes()
Returns an array of classes representing the data types of the fields in the attributes table
|
String |
getFilename() |
Rectangle2D |
getFullExtent()
Returns the extent covered by the layer
|
String |
getName()
Returns the name of this data object
|
es.unex.sextante.outputs.IOutputChannel |
getOutputChannel()
Returns the channel associated to this data object.
|
int |
getShapesCount()
Returns the number of features in this layer
|
int |
getShapeType()
Returns the type of geometries in this layer
|
int |
getSubType()
Returns the subtype of geometries in this layer
|
es.unex.sextante.dataObjects.IFeatureIterator |
iterator()
Returns an iterator to iterate through the entities of this layer
|
void |
open()
This methods initialize the data object, so it is ready to be accessed
|
void |
postProcess()
This method post-processes the object after it has been created.
|
void |
setName(String name)
Sets a new name for this object
|
public void create(String sName, Object inputParams, int iShapeType, Class[] types, String[] sFields, Object crs, int[] fieldSize)
public void create(String sName, Object inputParams, int iShapeType, Class[] types, String[] sFields, Object crs, int[] fieldSize, int subtype)
public void create(String sName, String sFilename, int iShapeType, Class<?>[] types, String[] sFields, Object crs, int[] fieldSize)
public void create(String sName, String sFilename, int iShapeType, Class<?>[] types, String[] sFields, Object crs, int[] fieldSize, int subtype)
public void create(FLyrVect layer)
public void open()
es.unex.sextante.dataObjects.IDataObjectpublic void close()
es.unex.sextante.dataObjects.IDataObjectpublic int getDataTypeLength(int dataType)
dataType - public void addFeature(Geometry geom,
Object[] values)
es.unex.sextante.dataObjects.IVectorLayergeom - the geometryvalues - the attributes associated with the geometrypublic es.unex.sextante.dataObjects.IFeatureIterator iterator()
es.unex.sextante.dataObjects.IVectorLayerpublic String getFieldName(int i)
es.unex.sextante.dataObjects.IVectorLayeri - the zero-based field indexpublic Class<?> getFieldType(int i)
es.unex.sextante.dataObjects.IVectorLayeri - the zero-based field indexpublic int getFieldCount()
public int getShapesCount()
es.unex.sextante.dataObjects.IVectorLayergetShapesCount in interface es.unex.sextante.dataObjects.IVectorLayergetShapesCount in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic int getShapeType()
es.unex.sextante.dataObjects.IVectorLayerpublic String getName()
es.unex.sextante.dataObjects.IDataObjectpublic void postProcess()
es.unex.sextante.dataObjects.IDataObjectpublic String getFilename()
public Object getCRS()
es.unex.sextante.dataObjects.ILayerpublic void setName(String name)
es.unex.sextante.dataObjects.IDataObjectname - the new namepublic Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObjectgetBaseDataObject in interface es.unex.sextante.dataObjects.IDataObjectgetBaseDataObject in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic void free()
es.unex.sextante.dataObjects.IDataObjectpublic es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObjectpublic boolean canBeEdited()
es.unex.sextante.dataObjects.IVectorLayerpublic FeatureStore getFeatureStore()
public Rectangle2D getFullExtent()
es.unex.sextante.dataObjects.ILayergetFullExtent in interface es.unex.sextante.dataObjects.ILayergetFullExtent in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic String[] getFieldNames()
es.unex.sextante.dataObjects.IVectorLayergetFieldNames in interface es.unex.sextante.dataObjects.IVectorLayergetFieldNames in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic int getFieldIndexByName(String sFieldName)
es.unex.sextante.dataObjects.IVectorLayergetFieldIndexByName in interface es.unex.sextante.dataObjects.IVectorLayergetFieldIndexByName in class es.unex.sextante.dataObjects.AbstractVectorLayersFieldName - the name of the fieldpublic Class<?>[] getFieldTypes()
es.unex.sextante.dataObjects.IVectorLayergetFieldTypes in interface es.unex.sextante.dataObjects.IVectorLayergetFieldTypes in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic int getSubType()
throws ReadException
es.unex.sextante.dataObjects.IVectorLayerReadException