public class FlyrVectIVectorLayer
extends es.unex.sextante.dataObjects.AbstractVectorLayer
| Constructor and Description |
|---|
FlyrVectIVectorLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Geometry geom,
java.lang.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(java.lang.String sName,
java.lang.Object inputParams,
int iShapeType,
java.lang.Class[] types,
java.lang.String[] sFields,
java.lang.Object crs,
int[] fieldSize) |
void |
create(java.lang.String sName,
java.lang.Object inputParams,
int iShapeType,
java.lang.Class[] types,
java.lang.String[] sFields,
java.lang.Object crs,
int[] fieldSize,
int subtype) |
void |
create(java.lang.String sName,
java.lang.String sFilename,
int iShapeType,
java.lang.Class<?>[] types,
java.lang.String[] sFields,
java.lang.Object crs,
int[] fieldSize) |
void |
create(java.lang.String sName,
java.lang.String sFilename,
int iShapeType,
java.lang.Class<?>[] types,
java.lang.String[] sFields,
java.lang.Object crs,
int[] fieldSize,
int subtype) |
void |
free()
This method deallocates memory used by the data object.
|
java.lang.Object |
getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself)
|
java.lang.String |
getContextName() |
java.lang.Object |
getCRS()
Returns an object with information about the CRS associated to this layer.
|
int |
getDataTypeLength(int dataType)
Returns the length of field
|
int |
getFeatureIndexByFieldIndex(int i) |
java.lang.String |
getFeatureNameByFieldIndex(int i) |
FeatureStore |
getFeatureStore() |
int |
getFieldCount() |
int |
getFieldIndexByName(java.lang.String sFieldName)
Returns the index of a field from its name.
|
java.lang.String |
getFieldName(int i)
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 i)
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
|
java.lang.String |
getFilename() |
java.awt.geom.Rectangle2D |
getFullExtent()
Returns the extent covered by the layer
|
java.lang.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
|
boolean |
hasSelection() |
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(java.lang.String name)
Sets a new name for this object
|
void |
setViewName(java.lang.String viewName) |
public void create(java.lang.String sName,
java.lang.Object inputParams,
int iShapeType,
java.lang.Class[] types,
java.lang.String[] sFields,
java.lang.Object crs,
int[] fieldSize)
public void create(java.lang.String sName,
java.lang.Object inputParams,
int iShapeType,
java.lang.Class[] types,
java.lang.String[] sFields,
java.lang.Object crs,
int[] fieldSize,
int subtype)
public void create(java.lang.String sName,
java.lang.String sFilename,
int iShapeType,
java.lang.Class<?>[] types,
java.lang.String[] sFields,
java.lang.Object crs,
int[] fieldSize)
public void create(java.lang.String sName,
java.lang.String sFilename,
int iShapeType,
java.lang.Class<?>[] types,
java.lang.String[] sFields,
java.lang.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,
java.lang.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 java.lang.String getFieldName(int i)
es.unex.sextante.dataObjects.IVectorLayeri - the zero-based field indexpublic java.lang.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 java.lang.String getName()
es.unex.sextante.dataObjects.IDataObjectpublic void postProcess()
es.unex.sextante.dataObjects.IDataObjectpublic java.lang.String getFilename()
public java.lang.Object getCRS()
es.unex.sextante.dataObjects.ILayerpublic void setName(java.lang.String name)
es.unex.sextante.dataObjects.IDataObjectname - the new namepublic java.lang.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()
getFeatureStore in interface es.unex.sextante.dataObjects.IVectorLayergetFeatureStore in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic java.awt.geom.Rectangle2D getFullExtent()
es.unex.sextante.dataObjects.ILayergetFullExtent in interface es.unex.sextante.dataObjects.ILayergetFullExtent in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic java.lang.String[] getFieldNames()
es.unex.sextante.dataObjects.IVectorLayergetFieldNames in interface es.unex.sextante.dataObjects.IVectorLayergetFieldNames in class es.unex.sextante.dataObjects.AbstractVectorLayerpublic int getFieldIndexByName(java.lang.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 java.lang.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.IVectorLayerReadExceptionpublic int getFeatureIndexByFieldIndex(int i)
public java.lang.String getFeatureNameByFieldIndex(int i)
public void setViewName(java.lang.String viewName)
public java.lang.String getContextName()
public boolean hasSelection()