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.IDataObject
public void close()
es.unex.sextante.dataObjects.IDataObject
public int getDataTypeLength(int dataType)
dataType
- public void addFeature(Geometry geom, java.lang.Object[] values)
es.unex.sextante.dataObjects.IVectorLayer
geom
- the geometryvalues
- the attributes associated with the geometrypublic es.unex.sextante.dataObjects.IFeatureIterator iterator()
es.unex.sextante.dataObjects.IVectorLayer
public java.lang.String getFieldName(int i)
es.unex.sextante.dataObjects.IVectorLayer
i
- the zero-based field indexpublic java.lang.Class<?> getFieldType(int i)
es.unex.sextante.dataObjects.IVectorLayer
i
- the zero-based field indexpublic int getFieldCount()
public int getShapesCount()
es.unex.sextante.dataObjects.IVectorLayer
getShapesCount
in interface es.unex.sextante.dataObjects.IVectorLayer
getShapesCount
in class es.unex.sextante.dataObjects.AbstractVectorLayer
public int getShapeType()
es.unex.sextante.dataObjects.IVectorLayer
public java.lang.String getName()
es.unex.sextante.dataObjects.IDataObject
public void postProcess()
es.unex.sextante.dataObjects.IDataObject
public java.lang.String getFilename()
public java.lang.Object getCRS()
es.unex.sextante.dataObjects.ILayer
public void setName(java.lang.String name)
es.unex.sextante.dataObjects.IDataObject
name
- the new namepublic java.lang.Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObject
getBaseDataObject
in interface es.unex.sextante.dataObjects.IDataObject
getBaseDataObject
in class es.unex.sextante.dataObjects.AbstractVectorLayer
public void free()
es.unex.sextante.dataObjects.IDataObject
public es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObject
public boolean canBeEdited()
es.unex.sextante.dataObjects.IVectorLayer
public FeatureStore getFeatureStore()
getFeatureStore
in interface es.unex.sextante.dataObjects.IVectorLayer
getFeatureStore
in class es.unex.sextante.dataObjects.AbstractVectorLayer
public java.awt.geom.Rectangle2D getFullExtent()
es.unex.sextante.dataObjects.ILayer
getFullExtent
in interface es.unex.sextante.dataObjects.ILayer
getFullExtent
in class es.unex.sextante.dataObjects.AbstractVectorLayer
public java.lang.String[] getFieldNames()
es.unex.sextante.dataObjects.IVectorLayer
getFieldNames
in interface es.unex.sextante.dataObjects.IVectorLayer
getFieldNames
in class es.unex.sextante.dataObjects.AbstractVectorLayer
public int getFieldIndexByName(java.lang.String sFieldName)
es.unex.sextante.dataObjects.IVectorLayer
getFieldIndexByName
in interface es.unex.sextante.dataObjects.IVectorLayer
getFieldIndexByName
in class es.unex.sextante.dataObjects.AbstractVectorLayer
sFieldName
- the name of the fieldpublic java.lang.Class<?>[] getFieldTypes()
es.unex.sextante.dataObjects.IVectorLayer
getFieldTypes
in interface es.unex.sextante.dataObjects.IVectorLayer
getFieldTypes
in class es.unex.sextante.dataObjects.AbstractVectorLayer
public int getSubType() throws ReadException
es.unex.sextante.dataObjects.IVectorLayer
ReadException
public 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()