es.unex.sextante.rasterize.interpolationBase
Class BaseInterpolationAlgorithm

java.lang.Object
  extended by es.unex.sextante.core.GeoAlgorithm
      extended by es.unex.sextante.rasterize.interpolationBase.BaseInterpolationAlgorithm
Direct Known Subclasses:
IDWAlgorithm, KrigingAlgorithm, LinearDecreaseAlgorithm, UniversalKrigingAlgorithm

public abstract class BaseInterpolationAlgorithm
extends es.unex.sextante.core.GeoAlgorithm


Field Summary
static java.lang.String DIST
           
static java.lang.String FIELD
           
static java.lang.String LAYER
           
protected  double m_dDistance
           
protected  int m_iField
           
protected  es.unex.sextante.dataObjects.IVectorLayer m_Layer
           
protected  PtAndDistance[] m_NearestPoints
           
protected  NearestNeighbourFinder m_SearchEngine
           
protected  double NO_DATA
           
static java.lang.String RESULT
           
 
Fields inherited from class es.unex.sextante.core.GeoAlgorithm
m_AnalysisExtent, m_bIsAutoExtent, m_bIsDeterminatedProcess, m_bUserCanDefineAnalysisExtent, m_CRS, m_OutputFactory, m_OutputObjects, m_Parameters, m_Task
 
Constructor Summary
BaseInterpolationAlgorithm()
           
 
Method Summary
protected  void createCrossValidationTable()
           
 void defineCharacteristics()
           
protected  double getValueAt(double x, double y)
           
protected  double getValueAt(int x, int y)
           
protected abstract  double interpolate(double x, double y)
           
 boolean processAlgorithm()
           
protected  void setValues()
           
 
Methods inherited from class es.unex.sextante.core.GeoAlgorithm
addOutput3DRasterLayer, addOutput3DRasterLayer, addOutputChart, addOutputChart, addOutputImage, addOutputNumericalValue, addOutputNumericalValue, addOutputObject, addOutputObject, addOutputRasterLayer, addOutputRasterLayer, addOutputRasterLayer, addOutputTable, addOutputTable, addOutputText, addOutputText, addOutputVectorLayer, addOutputVectorLayer, addOutputVectorLayer, addOutputVectorLayer, adjustOutputExtent, canDefineOutputExtentFromInput, execute, execute, generatesLayers, generatesLayersOrTables, getAlgorithmAsCommandLineSentences, getAnalysisExtent, getColorAlpha, getColorB, getColorG, getColorR, getCommandLineHelp, getCommandLineName, getCommandLineParametersHelp, getDescription, getGroup, getName, getNew3DRasterLayer, getNew3DRasterLayer, getNewInstance, getNewRasterLayer, getNewRasterLayer, getNewRasterLayer, getNewRasterLayer, getNewTable, getNewVectorLayer, getNewVectorLayer, getNumberOfBandsParameters, getNumberOfLineVectorLayers, getNumberOfNoDataParameters, getNumberOfOutputObjects, getNumberOfParameters, getNumberOfPointVectorLayers, getNumberOfPolygonLayers, getNumberOfRasterLayers, getNumberOfTableFieldsParameters, getNumberOfTables, getNumberOfVectorLayers, getOutputChannel, getOutputCRS, getOutputFilename, getOutputObjects, getParameters, getProcessMetadata, getTempRasterLayer, getTempRasterLayer, getTempVectorLayer, getUserCanDefineAnalysisExtent, hasCorrectParameterValues, 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, setProgress, setProgressText, setUserCanDefineAnalysisExtent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIST

public static final java.lang.String DIST
See Also:
Constant Field Values

FIELD

public static final java.lang.String FIELD
See Also:
Constant Field Values

LAYER

public static final java.lang.String LAYER
See Also:
Constant Field Values

m_dDistance

protected double m_dDistance

m_iField

protected int m_iField

m_Layer

protected es.unex.sextante.dataObjects.IVectorLayer m_Layer

m_NearestPoints

protected PtAndDistance[] m_NearestPoints

m_SearchEngine

protected NearestNeighbourFinder m_SearchEngine

NO_DATA

protected double NO_DATA

RESULT

public static final java.lang.String RESULT
See Also:
Constant Field Values
Constructor Detail

BaseInterpolationAlgorithm

public BaseInterpolationAlgorithm()
Method Detail

createCrossValidationTable

protected void createCrossValidationTable()
                                   throws es.unex.sextante.exceptions.UnsupportedOutputChannelException
Throws:
es.unex.sextante.exceptions.UnsupportedOutputChannelException

defineCharacteristics

public void defineCharacteristics()
Specified by:
defineCharacteristics in class es.unex.sextante.core.GeoAlgorithm

getValueAt

protected double getValueAt(double x,
                            double y)

getValueAt

protected double getValueAt(int x,
                            int y)

interpolate

protected abstract double interpolate(double x,
                                      double y)

processAlgorithm

public boolean processAlgorithm()
                         throws es.unex.sextante.exceptions.GeoAlgorithmExecutionException
Specified by:
processAlgorithm in class es.unex.sextante.core.GeoAlgorithm
Throws:
es.unex.sextante.exceptions.GeoAlgorithmExecutionException

setValues

protected void setValues()
                  throws es.unex.sextante.exceptions.GeoAlgorithmExecutionException
Throws:
es.unex.sextante.exceptions.GeoAlgorithmExecutionException


Copyright © 2014 gvSIG Association. All Rights Reserved.