~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to raster/r.out.vtk/parameters.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <grass/config.h>
21
21
#include "parameters.h"
22
22
 
23
 
 
24
 
 
25
23
/* ************************************************************************* */
26
24
/* PARAMETERS ************************************************************** */
27
25
/* ************************************************************************* */
29
27
void set_params()
30
28
{
31
29
    param.input = G_define_standard_option(G_OPT_R_INPUTS);
 
30
    param.input->required = NO;
 
31
    param.input->description =
 
32
        _("Raster map(s) to be converted to VTK-ASCII data format");
32
33
 
33
 
    param.output = G_define_option();
34
 
    param.output->key = "output";
35
 
    param.output->type = TYPE_STRING;
36
 
    param.output->gisprompt = "new_file,file,output";
 
34
    param.output = G_define_standard_option(G_OPT_F_OUTPUT);
37
35
    param.output->required = NO;
38
36
    param.output->description = _("Name for VTK-ASCII output file");
39
37
 
40
 
    param.elevationmap = G_define_option();
41
 
    param.elevationmap->key = "elevation";
42
 
    param.elevationmap->type = TYPE_STRING;
 
38
    param.elevationmap = G_define_standard_option(G_OPT_R_ELEV);
43
39
    param.elevationmap->required = NO;
44
 
    param.elevationmap->gisprompt = "old,cell,raster";
45
 
    param.elevationmap->multiple = NO;
46
 
    param.elevationmap->description = _("Elevation raster map");
47
 
 
 
40
    
48
41
    param.null_val = G_define_option();
49
42
    param.null_val->key = "null";
50
43
    param.null_val->type = TYPE_DOUBLE;
51
44
    param.null_val->required = NO;
52
45
    param.null_val->description = _("Value to represent no data cell");
53
 
    param.null_val->answer = "-10.0";
 
46
    param.null_val->answer = "-99999.99";
54
47
 
55
48
    param.elev = G_define_option();
56
 
    param.elev->key = "elevation2d";
 
49
    param.elev->key = "z";
57
50
    param.elev->type = TYPE_DOUBLE;
58
51
    param.elev->required = NO;
59
52
    param.elev->description =
60
 
        _("Elevation (if no elevation map is specified)");
 
53
        _("Constant elevation (if no elevation map is specified)");
61
54
    param.elev->answer = "0.0";
62
55
 
63
56
    param.point = G_define_flag();
73
66
    param.rgbmaps->multiple = YES;
74
67
    param.rgbmaps->guisection = "Advanced options";
75
68
    param.rgbmaps->description =
76
 
        _("Three (r,g,b) raster maps to create rgb values [redmap,greenmap,bluemap]");
 
69
        _("Three (r,g,b) raster maps to create RGB values [redmap,greenmap,bluemap]");
77
70
 
78
71
    param.vectmaps = G_define_option();
79
72
    param.vectmaps->key = "vectormaps";
86
79
        _("Three (x,y,z) raster maps to create vector values [xmap,ymap,zmap]");
87
80
 
88
81
    param.elevscale = G_define_option();
89
 
    param.elevscale->key = "elevscale";
 
82
    param.elevscale->key = "zscale";
90
83
    param.elevscale->type = TYPE_DOUBLE;
91
84
    param.elevscale->required = NO;
 
85
    param.elevscale->description = _("Scale factor for elevation");
92
86
    param.elevscale->guisection = "Advanced options";
93
 
    param.elevscale->description = _("Scale factor for elevation");
94
87
    param.elevscale->answer = "1.0";
95
88
 
96
89
    param.decimals = G_define_option();
97
 
    param.decimals->key = "dp";
 
90
    param.decimals->key = "precision";
98
91
    param.decimals->type = TYPE_INTEGER;
99
92
    param.decimals->required = NO;
100
93
    param.decimals->multiple = NO;
126
119
    param.origin->key = 'o';
127
120
    param.origin->guisection = "Advanced options";
128
121
    param.origin->description =
129
 
        _("Scale factor effects the origin (if no elevation map is given)");
 
122
        _("Scale factor affects the origin (if no elevation map is given)");
130
123
 
131
124
    param.coorcorr = G_define_flag();
132
125
    param.coorcorr->key = 'c';
133
126
    param.coorcorr->guisection = "Advanced options";
134
127
    param.coorcorr->description =
135
 
        _("Correct the coordinates to fit the VTK-OpenGL precision");
 
128
        _("Correct the coordinates to match the VTK-OpenGL precision");
136
129
 
137
130
 
138
131
    /*