public class FuseSpatiallyAlgorithm extends AbstractSextanteGeoProcess
| Modifier and Type | Field and Description |
|---|---|
static String |
LAYER |
static String |
RESULT |
static String |
RESULT_TABLE |
static String |
SELECTED_GEOM |
attrNames, geomManager| Constructor and Description |
|---|
FuseSpatiallyAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected FeatureStore |
buildFuseSpatiallyOutPutStore(String[] attrNames,
Class[] types,
int shapeType,
String sextanteLayerName,
String sextanteLayerLabel)
Builds the output FeatureStore
|
String[] |
checkFields(String[] names)
Removes duplicate fields
|
void |
computesGeometryOperation(FeatureStore inFeatStore,
FeatureStore outFeatStore,
FeatureStore outFeatStoreTable,
String[] attrNames,
String[] attrNamesTable,
boolean selectedGeom,
SimpleTaskStatus status,
String idField)
Deprecated.
This method uses FuseSpatiallyOperation which is deprecated
|
void |
defineCharacteristics()
This method should be overridden and used to specify the parameters needed by the GeoAlgorithm, using the corresponding
methods of the ParametersSet object.
|
boolean |
execute(FeatureStore inputStoreLayer,
FeatureStore outFeatStore,
int shapeType,
boolean selectedGeom,
SimpleTaskStatus status,
String idField,
boolean createTable) |
boolean |
processAlgorithm()
This method should implement the algorithm itself, using the values of the parameters and processing them.
|
void |
setParentProcess(AbstractSextanteGeoProcess process) |
boolean |
setProgress(int step,
int size)
Sets the current step in the progress bar, based on the ratio between the current task step and the total number of steps
needed to complete the task
|
buildOutPutStore, buildOutPutStoreFromUnion, buildOutPutStoreFromUnion, checkAttrName, execute, existsOutPutFile, getCommandLineName, getCustomParametersPanelClass, getGeoProcessManager, getGeoProcessName, getNewRORasterLayer, getOutPutFile, getQueryFromAnalysisExtent, getShapeType, getStatus, getTaskMonitor, getTranslation, isLine, isPoint, isPolygon, isUndefined, setProgressText, setTaskMonitoraddOutput3DRasterLayer, addOutput3DRasterLayer, addOutputChart, addOutputChart, addOutputImage, addOutputNumericalValue, addOutputNumericalValue, addOutputObject, addOutputObject, addOutputRasterLayer, addOutputRasterLayer, addOutputRasterLayer, addOutputTable, addOutputTable, addOutputText, addOutputText, addOutputVectorLayer, addOutputVectorLayer, addOutputVectorLayer, addOutputVectorLayer, addOutputVectorLayer, adjustOutputExtent, canDefineOutputExtentFromInput, checkAttrName, execute, generatesLayers, generatesLayersOrTables, getAlgorithmAsCommandLineSentences, getAnalysisExtent, getColorAlpha, getColorB, getColorG, getColorR, getCommandLineHelp, getCommandLineParametersHelp, getDescription, getGroup, getName, getNew3DRasterLayer, getNew3DRasterLayer, getNewInstance, getNewRasterLayer, getNewRasterLayer, getNewRasterLayer, getNewRasterLayer, getNewTable, getNewVectorLayer, getNewVectorLayer, getNewVectorLayer, getNewVectorLayer, getNumberOfBandsParameters, getNumberOfLineVectorLayers, getNumberOfNoDataParameters, getNumberOfOutputObjects, getNumberOfParameters, getNumberOfPointVectorLayers, getNumberOfPolygonLayers, getNumberOfRasterLayers, getNumberOfTableFieldsParameters, getNumberOfTables, getNumberOfVectorLayers, getOutputChannel, getOutputCRS, getOutputFilename, getOutputObjects, getParameters, getProcessMetadata, getTempRasterLayer, getTempRasterLayer, getTempVectorLayer, getUserCanDefineAnalysisExtent, hasCorrectParameterValues, initializeDefaultValues, is3D, isActive, isAutoExtent, isDeterminatedProcess, isSuitableForModelling, meets3DRasterRequirements, meetsDataRequirements, meetsRasterRequirements, meetsTableRequirements, meetsVectorRequirements, preprocessForModeller, requires3DRasterLayers, requiresIndividualRasterLayers, requiresIndividualVectorLayers, requiresLineVectorLayers, requiresMultipleRasterBands, requiresMultipleRasterLayers, requiresMultipleTables, requiresMultipleVectorLayers, requiresNonDataObjects, requiresPoints, requiresPointVectorLayers, requiresPolygonVectorLayers, requiresRasterLayers, requiresTableFields, requiresTables, requiresVectorLayers, setAnalysisExtent, setColorAlpha, setColorB, setColorG, setColorR, setDescription, setGroup, setIsDeterminatedProcess, setName, setOutputObjects, setParameters, setUserCanDefineAnalysisExtent, toStringpublic static final String RESULT
public static final String RESULT_TABLE
public static final String LAYER
public static final String SELECTED_GEOM
public void defineCharacteristics()
es.unex.sextante.core.GeoAlgorithmGeoAlgorithm.addOutputRasterLayer(java.lang.String, java.lang.String, int, es.unex.sextante.outputs.IOutputChannel, es.unex.sextante.dataObjects.IRasterLayer), GeoAlgorithm.addOutputVectorLayer(java.lang.String, java.lang.String, int, es.unex.sextante.outputs.IOutputChannel, es.unex.sextante.dataObjects.IVectorLayer, java.lang.String, int), etc.)defineCharacteristics in class es.unex.sextante.core.GeoAlgorithmpublic void setParentProcess(AbstractSextanteGeoProcess process)
public boolean processAlgorithm()
throws es.unex.sextante.exceptions.GeoAlgorithmExecutionException
es.unex.sextante.core.GeoAlgorithmprocessAlgorithm in class es.unex.sextante.core.GeoAlgorithmes.unex.sextante.exceptions.GeoAlgorithmExecutionException - if there were problems during algorithm executionpublic boolean execute(FeatureStore inputStoreLayer, FeatureStore outFeatStore, int shapeType, boolean selectedGeom, SimpleTaskStatus status, String idField, boolean createTable) throws DataException
inputStoreLayer - outFeatStore - shapeType - selectedGeom - status - idField - createTable - DataExceptionpublic String[] checkFields(String[] names)
names - public void computesGeometryOperation(FeatureStore inFeatStore, FeatureStore outFeatStore, FeatureStore outFeatStoreTable, String[] attrNames, String[] attrNamesTable, boolean selectedGeom, SimpleTaskStatus status, String idField) throws DataException
inFeatStore - Input FeatureStoreoutFeatStore - Output FeatureStoreattrNames - List of attributes to build the output feature storeselectedGeom - If it is true only the selected geometries will be processedDataExceptionpublic boolean setProgress(int step,
int size)
es.unex.sextante.core.GeoAlgorithmsetProgress in class AbstractSextanteGeoProcessstep - the current stepsize - the total number of stepsprotected FeatureStore buildFuseSpatiallyOutPutStore(String[] attrNames, Class[] types, int shapeType, String sextanteLayerName, String sextanteLayerLabel)
featureType -