TerraME / terrame

TerraME is a programming environment for spatial dynamical modelling
www.terrame.org
GNU Lesser General Public License v3.0
36 stars 13 forks source link

Layer:fill #788

Closed pedro-andrade-inpe closed 7 years ago

pedro-andrade-inpe commented 8 years ago

Implement a CellularLayer:fillCells to fill the cells of cellular spaces. This issue should be implemented with only a single strategy (according to the documentation already available in the package). Implement basic and alternative tests. Other strategies need to be implemented in separated issues.

pedro-andrade-inpe commented 8 years ago

The process to implement each strategy will be as follows:

  1. @pedro-andrade-inpe will implement a Lua test for such strategy.
  2. @avancinirodrigo will implement the internal function with a call to TerraLib.
  3. @pedro-andrade-inpe will create a snapshot and verify if the result is correct. If ok then the ticket is closed, otherwise go back to step 2.
pedro-andrade-inpe commented 8 years ago

terralib5/src/terralib/attributefill

Class VectorToVectorMemory

Raster uses the enum available in te::stat

avancinirodrigo commented 8 years ago

Vectorial operations completed. Released to verification.

avancinirodrigo commented 8 years ago

Raster operations completed. Released to verification.

avancinirodrigo commented 8 years ago

VectorToVector enum:

/*!
  \file terralib/geometry/Enums.h
*/

    /*!
      \enum OperationType

      \brief Define grouping operations type.
    */
    enum OperationType
    {
      VALUE,
      MIN_VALUE,
      MAX_VALUE,
      MEAN,
      SUM,
      COUNT,
      VALID_COUNT,
      STANDARD_DEVIATION,
      VARIANCE,
      SKEWNESS,
      KURTOSIS,
      AMPLITUDE,
      MEDIAN,
      VAR_COEFF,
      MODE,
      HIGHEST_OCCURRENCE,
      HIGHEST_INTERSECTION,
      PERCENT_CLASS,
      MIN_DISTANCE,
      PRESENCE,
      WEIGHTED,
      WEIGHTED_SUM,
      PERCENT_EACH_CLASS,
      PERCENT_TOTAL_AREA
    };
avancinirodrigo commented 8 years ago

RasterToVector enum:

/*!
  \file terralib/statistics/core/Enums.h
*/

    /*!
      \enum StatisticalSummary

      \brief Define grouping functions type.
    */
    enum StatisticalSummary
    {
      MIN_VALUE,                  //!< Minimum value.
      MAX_VALUE,                  //!< Maximum value.
      MEAN,                       //!< Mean.
      SUM,                        //!< Sum of values.
      COUNT,                      //!< Total number of values.
      VALID_COUNT,                //!< Total not null values.
      STANDARD_DEVIATION,         //!< Standard deviation.
      VARIANCE,                   //!< Variance.
      SKEWNESS,                   //!< Skewness.
      KURTOSIS,                   //!< Kurtosis.
      AMPLITUDE,                  //!< Amplitude.
      MEDIAN,                     //!< Median.
      VAR_COEFF,                  //!< Coefficient variation.
      MODE,                       //!< Mode.
      PERCENT_EACH_CLASS_BY_AREA, //!< Percente of each class by area.
      PERCENT_TOTAL_AREA          //!< Percente of total area.
    };
pedro-andrade-inpe commented 7 years ago

Fill is working properly. The remaining operations are bugs or depend on TerraLib.