Changeset 56211


Ignore:
Timestamp:
May 12, 2013, 4:07:51 AM (11 years ago)
Author:
martinl
Message:

libgis: add standardized option for interpolation methods

G_OPT_R_INTERP_TYPE

Location:
grass/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/include/gis.h

    r52468 r56211  
    199199    G_OPT_R_ELEV,               /* old input elevation raster map */
    200200    G_OPT_R_ELEVS,              /* old input elevation raster maps */
     201    G_OPT_R_INTERP_TYPE,        /* interpolation type */
    201202
    202203    G_OPT_R3_INPUT,             /* old input raster3d map */
  • grass/trunk/lib/gis/parser_standard_options.c

    r56073 r56211  
    5555   - G_OPT_R_ELEV
    5656   - G_OPT_R_ELEVS
    57    
     57   - G_OPT_R_INTERP_TYPE
     58
    5859  - raster3d:
    5960   - G_OPT_R3_INPUT
     
    303304        Opt->description = _("Name of input elevation raster map(s)");
    304305        break;
     306    case G_OPT_R_INTERP_TYPE:
     307        Opt->key = "method";
     308        Opt->type = TYPE_STRING;
     309        Opt->required = NO;
     310        Opt->description = _("Interpolation method");
     311        Opt->options = "nearest,bilinear,bicubic";
     312        break;
    305313
    306314        /*g3d maps */
Note: See TracChangeset for help on using the changeset viewer.