public class DefaultOutputFactory
extends es.unex.sextante.core.OutputFactory
Constructor and Description |
---|
DefaultOutputFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(String s) |
Object |
getDefaultCRS()
Returns the default CRS for new layers.
|
es.unex.sextante.dataObjects.IRasterLayer |
getNewEmptyRORasterLayer(String sName,
int iDataType,
es.unex.sextante.core.AnalysisExtent extent,
int iBands,
es.unex.sextante.outputs.IOutputChannel channel,
Object crs) |
es.unex.sextante.dataObjects.IRasterLayer |
getNewRasterLayer(String sName,
int iDataType,
es.unex.sextante.core.AnalysisExtent extent,
int iBands,
es.unex.sextante.outputs.IOutputChannel channel,
Object crs)
Use this method to create a new raster layer as output from the geo-algorithm.
|
es.unex.sextante.dataObjects.ITable |
getNewTable(String sName,
Class[] types,
String[] sFields,
es.unex.sextante.outputs.IOutputChannel channel)
Use this method to create a new table.
|
es.unex.sextante.dataObjects.IVectorLayer |
getNewVectorLayer(String name,
int shapeType,
Class[] types,
String[] fields,
es.unex.sextante.outputs.IOutputChannel channel,
Object crs)
Use this method to create a new IVectorLayer that can be used to generate new vector layers as output from the geo-algorithm
|
es.unex.sextante.dataObjects.IVectorLayer |
getNewVectorLayer(String name,
int shapeType,
Class[] types,
String[] fields,
es.unex.sextante.outputs.IOutputChannel channel,
Object crs,
int subtype)
Use this method to create a new IVectorLayer that can be used to generate new vector layers as output from the geo-algorithm
|
es.unex.sextante.dataObjects.IVectorLayer |
getNewVectorLayer(String sName,
int iShapeType,
Class[] types,
String[] sFields,
es.unex.sextante.outputs.IOutputChannel channel,
Object crs,
int[] fieldSize)
Use this method to create a new IVectorLayer that can be used to generate new vector layers as output from the geo-algorithm
|
es.unex.sextante.dataObjects.IVectorLayer |
getNewVectorLayer(String sName,
int iShapeType,
Class[] types,
String[] sFields,
es.unex.sextante.outputs.IOutputChannel channel,
Object crs,
int[] fieldSize,
int subtype)
Use this method to create a new IVectorLayer that can be used to generate new vector layers as output from the geo-algorithm
|
String[] |
getRasterLayerOutputExtensions()
Returns the extensions supported by this factory for creating raster layers.
|
String[] |
getTableOutputExtensions()
Returns the extensions supported by this factory for creating raster layers.
|
es.unex.sextante.core.ITaskMonitor |
getTaskMonitor(String sTitle,
boolean bDeterminate,
JDialog parent)
Returns the task monitor that will be used to monitor algorithm execution
|
String |
getTempFolder()
Returns the temporary folder.
|
String[] |
getVectorLayerOutputExtensions()
Returns the extensions supported by this factory for creating vector layers.
|
get3DRasterLayerOutputExtensions, getDefaultNoDataValue, getNew3DRasterLayer, getTemp3DRasterLayerFilename, getTempFilename, getTempFilenameWithoutExtension, getTempFoldername, getTempRasterLayerFilename, getTempTableFilename, getTempVectorLayerFilename, setDefaultNoDataValue
public es.unex.sextante.dataObjects.IVectorLayer getNewVectorLayer(String name, int shapeType, Class[] types, String[] fields, es.unex.sextante.outputs.IOutputChannel channel, Object crs, int subtype) throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
es.unex.sextante.core.OutputFactory
getNewVectorLayer
in class es.unex.sextante.core.OutputFactory
name
- the name of the layershapeType
- the type of shapes in the layertypes
- the data type of the fieldsfields
- the name of the fields in the attributes tablechannel
- the output channel associated to the output layercrs
- An object with information to set the CRS of this layer (i.e. a string with a EPSG code)subtype
- the subtype of the geometries in the layeres.unex.sextante.exceptions.UnsupportedOutputChannelException
public es.unex.sextante.dataObjects.IVectorLayer getNewVectorLayer(String name, int shapeType, Class[] types, String[] fields, es.unex.sextante.outputs.IOutputChannel channel, Object crs) throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
es.unex.sextante.core.OutputFactory
getNewVectorLayer
in class es.unex.sextante.core.OutputFactory
name
- the name of the layershapeType
- the type of shapes in the layertypes
- the data type of the fieldsfields
- the name of the fields in the attributes tablechannel
- the output channel associated to the output layercrs
- An object with information to set the CRS of this layer (i.e. a string with a EPSG code)es.unex.sextante.exceptions.UnsupportedOutputChannelException
public es.unex.sextante.dataObjects.IVectorLayer getNewVectorLayer(String sName, int iShapeType, Class[] types, String[] sFields, es.unex.sextante.outputs.IOutputChannel channel, Object crs, int[] fieldSize) throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
es.unex.sextante.core.OutputFactory
getNewVectorLayer
in class es.unex.sextante.core.OutputFactory
sName
- the name of the layeriShapeType
- the type of shapes in the layertypes
- the data type of the fieldssFields
- the name of the fields in the attributes tablechannel
- the output channel associated to the output layercrs
- An object with information to set the CRS of this layer (i.e. a string with a EPSG code)fieldSize
- A list of integers. Each value represents the size of a table field.es.unex.sextante.exceptions.UnsupportedOutputChannelException
public es.unex.sextante.dataObjects.IVectorLayer getNewVectorLayer(String sName, int iShapeType, Class[] types, String[] sFields, es.unex.sextante.outputs.IOutputChannel channel, Object crs, int[] fieldSize, int subtype) throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
es.unex.sextante.core.OutputFactory
getNewVectorLayer
in class es.unex.sextante.core.OutputFactory
sName
- the name of the layeriShapeType
- the type of shapes in the layertypes
- the data type of the fieldssFields
- the name of the fields in the attributes tablechannel
- the output channel associated to the output layercrs
- An object with information to set the CRS of this layer (i.e. a string with a EPSG code)fieldSize
- A list of integers. Each value represents the size of a table field.subtype
- the subtype of the geometries in the layeres.unex.sextante.exceptions.UnsupportedOutputChannelException
public es.unex.sextante.dataObjects.IRasterLayer getNewRasterLayer(String sName, int iDataType, es.unex.sextante.core.AnalysisExtent extent, int iBands, es.unex.sextante.outputs.IOutputChannel channel, Object crs) throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
es.unex.sextante.core.OutputFactory
getNewRasterLayer
in class es.unex.sextante.core.OutputFactory
sName
- the name of the layeriDataType
- the type of data in the layerextent
- the AnalysisExtent to useiBands
- the number of bands of the new layerchannel
- the output channel associated to the output layercrs
- An object with information to set the CRS of this layer (i.e. a string with a EPSG code)es.unex.sextante.exceptions.UnsupportedOutputChannelException
public es.unex.sextante.dataObjects.IRasterLayer getNewEmptyRORasterLayer(String sName, int iDataType, es.unex.sextante.core.AnalysisExtent extent, int iBands, es.unex.sextante.outputs.IOutputChannel channel, Object crs) throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
es.unex.sextante.exceptions.UnsupportedOutputChannelException
public es.unex.sextante.dataObjects.ITable getNewTable(String sName, Class[] types, String[] sFields, es.unex.sextante.outputs.IOutputChannel channel) throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
es.unex.sextante.core.OutputFactory
getNewTable
in class es.unex.sextante.core.OutputFactory
sName
- the name of the tabletypes
- the data type of the fieldssFields
- The names of the fields in the tablechannel
- the output channel associated to the output layeres.unex.sextante.exceptions.UnsupportedOutputChannelException
public String getTempFolder()
es.unex.sextante.core.OutputFactory
getTempFolder
in class es.unex.sextante.core.OutputFactory
public String[] getRasterLayerOutputExtensions()
es.unex.sextante.core.OutputFactory
getRasterLayerOutputExtensions
in class es.unex.sextante.core.OutputFactory
public String[] getVectorLayerOutputExtensions()
es.unex.sextante.core.OutputFactory
getVectorLayerOutputExtensions
in class es.unex.sextante.core.OutputFactory
public String[] getTableOutputExtensions()
es.unex.sextante.core.OutputFactory
getTableOutputExtensions
in class es.unex.sextante.core.OutputFactory
public void addMessage(String s)
public es.unex.sextante.core.ITaskMonitor getTaskMonitor(String sTitle, boolean bDeterminate, JDialog parent)
es.unex.sextante.core.OutputFactory
getTaskMonitor
in class es.unex.sextante.core.OutputFactory
sTitle
- a String used to identify the monitor. This will be used, for instance, as the title string of a progress
dialog.bDeterminate
- true if the task monitor will monitor a determinated process (i.e. number of steps to complete the process is
know)public Object getDefaultCRS()
es.unex.sextante.core.OutputFactory
getDefaultCRS
in class es.unex.sextante.core.OutputFactory