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.IDataObject
public void close()
es.unex.sextante.dataObjects.IDataObject
public int getDataTypeLength(int dataType)
dataType
- public void addFeature(Geometry geom, 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 String getFieldName(int i)
es.unex.sextante.dataObjects.IVectorLayer
i
- the zero-based field indexpublic 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 String getName()
es.unex.sextante.dataObjects.IDataObject
public void postProcess()
es.unex.sextante.dataObjects.IDataObject
public String getFilename()
public Object getCRS()
es.unex.sextante.dataObjects.ILayer
public void setName(String name)
es.unex.sextante.dataObjects.IDataObject
name
- the new namepublic 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()
public Rectangle2D getFullExtent()
es.unex.sextante.dataObjects.ILayer
getFullExtent
in interface es.unex.sextante.dataObjects.ILayer
getFullExtent
in class es.unex.sextante.dataObjects.AbstractVectorLayer
public 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(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 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