public class BufferAlgorithm extends AbstractSextanteGeoProcess
Modifier and Type | Field and Description |
---|---|
static String |
AREA |
static byte |
BUFFER_INSIDE_OUTSIDE_POLY
For polygonal buffers, compute interior and exterior buffers
|
static byte |
BUFFER_INSIDE_POLY
For polygonal buffers, only compute interior buffers
|
static byte |
BUFFER_OUTSIDE_POLY
For polygonal buffers, only compute exterior buffers
(is the default operation, it applies to any geometry type)
|
protected boolean |
dissolve |
static String |
DISSOLVE |
static String |
DISTANCE |
static byte |
FID_DIST_FIELDS |
static byte |
FID_FROM_TO_FIELDS |
static String |
FIELD |
protected FeatureStore |
inputStore |
static String |
LAYER |
protected FeatureStore |
outputStore |
static String |
RESULT |
static String |
RING_NUMBER |
protected int |
rings |
protected boolean |
round_border |
static String |
ROUND_BORDER |
static String |
SELECTED_GEOM |
protected boolean |
selectedGeom |
protected es.unex.sextante.dataObjects.IVectorLayer |
sextanteInputLayer |
static String[] |
sOptions |
static byte |
SOURCE_FIELDS |
protected byte |
tableFields |
attrNames, geomManager
Constructor and Description |
---|
BufferAlgorithm() |
Modifier and Type | Method and Description |
---|---|
protected FeatureStore |
buildOutPutStore(int shapeType,
String sextanteLayerName,
String sextanteLayerLabel)
Builds the output FeatureStore
|
protected FeatureStore |
buildTemporalStore(int shapeType,
String file,
IProjection crs)
Builds the output FeatureStore
|
protected void |
computesBufferAlgWithDissolve(BufferOperation operation) |
protected void |
computesBufferAlgWithoutDissolve(BufferOperation operation) |
FeatureStore |
create(String sFilename,
int[] types,
String[] attrNames,
IProjection crs) |
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.
|
Class<? extends es.unex.sextante.gui.algorithm.GeoAlgorithmParametersPanel> |
getCustomParametersPanelClass() |
protected byte |
getTableFieldsStructure()
Gets the constant with the table structure
|
boolean |
processAlgorithm()
This method should implement the algorithm itself, using the values of the parameters and processing them.
|
protected void |
readParameters() |
buildOutPutStore, buildOutPutStoreFromUnion, buildOutPutStoreFromUnion, checkAttrName, execute, existsOutPutFile, getCommandLineName, getGeoProcessManager, getGeoProcessName, getNewRORasterLayer, getOutPutFile, getQueryFromAnalysisExtent, getShapeType, getStatus, getTaskMonitor, getTranslation, isLine, isPoint, isPolygon, isUndefined, setProgress, setProgressText, setTaskMonitor
addOutput3DRasterLayer, 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, 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, toString
public static final String RESULT
public static final String LAYER
public static final String SELECTED_GEOM
public static final String DISTANCE
public static final String FIELD
public static final String DISSOLVE
public static final String ROUND_BORDER
public static final String AREA
public static final String RING_NUMBER
public static final byte BUFFER_OUTSIDE_POLY
public static final byte BUFFER_INSIDE_POLY
public static final byte BUFFER_INSIDE_OUTSIDE_POLY
public static final byte SOURCE_FIELDS
public static final byte FID_DIST_FIELDS
public static final byte FID_FROM_TO_FIELDS
protected byte tableFields
protected boolean dissolve
protected int rings
protected boolean selectedGeom
protected FeatureStore inputStore
protected FeatureStore outputStore
protected es.unex.sextante.dataObjects.IVectorLayer sextanteInputLayer
protected boolean round_border
public static String[] sOptions
public void defineCharacteristics()
es.unex.sextante.core.GeoAlgorithm
GeoAlgorithm.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.GeoAlgorithm
protected void readParameters() throws es.unex.sextante.exceptions.WrongParameterTypeException, es.unex.sextante.exceptions.NullParameterValueException, es.unex.sextante.exceptions.WrongParameterIDException
es.unex.sextante.exceptions.WrongParameterTypeException
es.unex.sextante.exceptions.NullParameterValueException
es.unex.sextante.exceptions.WrongParameterIDException
public boolean processAlgorithm() throws es.unex.sextante.exceptions.GeoAlgorithmExecutionException
es.unex.sextante.core.GeoAlgorithm
processAlgorithm
in class es.unex.sextante.core.GeoAlgorithm
es.unex.sextante.exceptions.GeoAlgorithmExecutionException
- if there were problems during algorithm executionprotected void computesBufferAlgWithDissolve(BufferOperation operation) throws DataException
DataException
protected void computesBufferAlgWithoutDissolve(BufferOperation operation) throws DataException
DataException
protected byte getTableFieldsStructure()
protected FeatureStore buildOutPutStore(int shapeType, String sextanteLayerName, String sextanteLayerLabel) throws DataException
featureType
- DataException
protected FeatureStore buildTemporalStore(int shapeType, String file, IProjection crs) throws DataException, ValidateDataParametersException
featureType
- DataException
ValidateDataParametersException
public FeatureStore create(String sFilename, int[] types, String[] attrNames, IProjection crs)
public Class<? extends es.unex.sextante.gui.algorithm.GeoAlgorithmParametersPanel> getCustomParametersPanelClass()
getCustomParametersPanelClass
in class AbstractSextanteGeoProcess