public class FuseSpatiallyAlgorithm extends AbstractSextanteGeoProcess
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LAYER |
static java.lang.String |
RESULT |
static java.lang.String |
RESULT_TABLE |
static java.lang.String |
SELECTED_GEOM |
attrNames, geomManager| Constructor and Description |
|---|
FuseSpatiallyAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected FeatureStore |
buildFuseSpatiallyOutPutStore(java.lang.String[] attrNames,
java.lang.Class[] types,
int shapeType,
java.lang.String sextanteLayerName,
java.lang.String sextanteLayerLabel)
Builds the output FeatureStore
|
java.lang.String[] |
checkFields(java.lang.String[] names)
Removes duplicate fields
|
void |
computesGeometryOperation(FeatureStore inFeatStore,
FeatureStore outFeatStore,
FeatureStore outFeatStoreTable,
java.lang.String[] attrNames,
java.lang.String[] attrNamesTable,
boolean selectedGeom,
SimpleTaskStatus status,
java.lang.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,
java.lang.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, getNamesTranslator, 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, getHelpFile, getName, getNew3DRasterLayer, getNew3DRasterLayer, getNewInstance, getNewRasterLayer, getNewRasterLayer, getNewRasterLayer, getNewRasterLayer, getNewTable, getNewVectorLayer, getNewVectorLayer, getNewVectorLayer, getNewVectorLayer, getNumberOfBandsParameters, getNumberOfLineVectorLayers, getNumberOfNoDataParameters, getNumberOfOutputObjects, getNumberOfParameters, getNumberOfPointVectorLayers, getNumberOfPolygonLayers, getNumberOfRasterLayers, getNumberOfTableFieldsParameters, getNumberOfTableFilterParameters, getNumberOfTables, getNumberOfVectorLayers, getOutputChannel, getOutputCRS, getOutputFilename, getOutputObjects, getParameters, getProcessMetadata, getRecalculateForCell, 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, setRecalculateForCell, setUserCanDefineAnalysisExtent, toStringpublic static final java.lang.String RESULT
public static final java.lang.String RESULT_TABLE
public static final java.lang.String LAYER
public static final java.lang.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, java.lang.String idField, boolean createTable) throws DataException
inputStoreLayer - outFeatStore - shapeType - selectedGeom - status - idField - createTable - DataExceptionpublic java.lang.String[] checkFields(java.lang.String[] names)
names - public void computesGeometryOperation(FeatureStore inFeatStore, FeatureStore outFeatStore, FeatureStore outFeatStoreTable, java.lang.String[] attrNames, java.lang.String[] attrNamesTable, boolean selectedGeom, SimpleTaskStatus status, java.lang.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(java.lang.String[] attrNames, java.lang.Class[] types, int shapeType, java.lang.String sextanteLayerName, java.lang.String sextanteLayerLabel)
featureType -