19 #include "parser_local_proto.h"
153 Opt->
label =
_(
"SQL SELECT statement");
155 _(
"Example: select * from towns where population > 10000");
160 Opt->
gisprompt =
"old,sql_query,sql_query";
164 _(
"WHERE conditions of SQL statement without 'where' keyword");
165 Opt->
description =
_(
"Example: income < 1000 and population >= 10000");
183 Opt->
gisprompt =
"old,dbdriver,dbdriver";
186 Opt->
key =
"database";
200 Opt->
label =
_(
"Database schema");
201 Opt->
description =
_(
"Do not use this option if schemas "
202 "are not supported by driver/database server");
211 Opt->
gisprompt =
"old,dbcolumn,dbcolumn";
214 Opt->
key =
"columns";
220 Opt->
gisprompt =
"old,dbcolumn,dbcolumn";
228 Opt->
label =
_(
"Name of key column");
229 Opt->
description =
_(
"Must refer to an integer column");
244 Opt->
key =
"subgroup";
248 Opt->
gisprompt =
"old,subgroup,subgroup";
263 if (memstr && *memstr)
266 Opt->
label =
_(
"Maximum memory to be used (in MB)");
337 Opt->
key =
"elevation";
342 Opt->
description =
_(
"Name of input elevation raster map");
345 Opt->
key =
"elevation";
351 Opt->
description =
_(
"Name of input elevation raster map(s)");
358 Opt->
label =
_(
"Type of raster map to be created");
359 Opt->
description =
_(
"Storage type for resultant raster map");
360 Opt->
options =
"CELL,FCELL,DCELL";
362 _(
"Integer"),
_(
"Single precision floating point"),
363 _(
"Double precision floating point"));
370 Opt->
options =
"nearest,bilinear,bicubic";
372 "nearest;%s;bilinear;%s;bicubic;%s",
373 _(
"Nearest-neighbor interpolation"),
374 _(
"Bilinear interpolation"),
_(
"Bicubic interpolation"));
383 Opt->
description =
_(
"Name of input basename raster map(s)");
392 Opt->
description =
_(
"Name for output basename raster map(s)");
444 Opt->
options =
"default,double,float";
445 Opt->
description =
_(
"Data type used in the output raster3d map");
448 Opt->
key =
"precision";
454 _(
"Number of digits used as mantissa in the internal map storage, "
455 "0 -23 for float, 0 - 52 for double, max or default");
458 Opt->
key =
"compression";
463 Opt->
options =
"default,zip,none";
465 _(
"The compression method used in the output raster3d map");
468 Opt->
key =
"tiledimension";
474 Opt->
description =
_(
"The dimensions of the tiles used in the output "
475 "raster3d map (XxYxZ or default: 16x16x8)");
485 Opt->
label =
_(
"Name of input vector map");
486 Opt->
description =
_(
"Or data source for direct OGR access");
495 Opt->
label =
_(
"Name of input vector map(s)");
496 Opt->
description =
_(
"Or data source(s) for direct OGR access");
512 Opt->
label =
_(
"Name of vector map");
513 Opt->
description =
_(
"Or data source for direct OGR access");
529 Opt->
answer =
"point,line,boundary,centroid,area";
530 Opt->
options =
"point,line,boundary,centroid,area";
538 Opt->
answer =
"point,line,boundary,centroid,area,face,kernel";
539 Opt->
options =
"point,line,boundary,centroid,area,face,kernel";
547 Opt->
label =
_(
"Layer number or name");
549 _(
"Vector features can have category values in different layers."
550 " This number determines which layer to use. "
551 "When used with direct OGR access this is the layer name.");
559 Opt->
label =
_(
"Layer number or name ('-1' for all layers)");
561 _(
"A single vector map can be connected to multiple database "
562 "tables. This number determines which table to use. "
563 "When used with direct OGR access this is the layer name.");
578 Opt->
label =
_(
"Category values");
593 Opt->
label =
_(
"Feature ids");
623 Opt->
key =
"separator";
627 Opt->
gisprompt =
"old,separator,separator";
629 Opt->
label =
_(
"Field separator");
631 _(
"Special characters: pipe, comma, space, tab, newline");
643 Opt->
description =
_(
"Either a standard color name or R:G:B triplet");
654 _(
"Either a standard color name, R:G:B triplet, or \"none\"");
657 Opt->
key =
"color_format";
663 Opt->
options =
"rgb,hex,hsv,triplet";
664 Opt->
label =
_(
"Color format");
665 Opt->
description =
_(
"Color format for output values.");
667 (
char **)&(Opt->
descriptions),
"rgb;%s;hex;%s;hsv;%s;triplet;%s",
668 _(
"output color in RGB format"),
_(
"output color in HEX format"),
669 _(
"output color in HSV format (experimental)"),
670 _(
"output color in colon-separated RGB format"));
689 Opt->
options =
"miles,feet,meters,kilometers,acres,hectares";
709 Opt->
label =
_(
"Name of mapset (default: current search path)");
714 Opt->
key =
"project";
718 Opt->
label =
_(
"Project (location) name");
719 Opt->
description =
_(
"Project name (not path to project)");
720 Opt->
gisprompt =
"old,location,location";
729 Opt->
label =
_(
"GRASS GIS database directory");
730 Opt->
description =
_(
"Default: path to the current GRASS GIS database");
736 Opt->
key =
"coordinates";
753 Opt->
gisprompt =
"old,colortable,colortable";
757 Opt->
key =
"null_value";
783 if (memstr && *memstr)
786 Opt->
description =
_(
"Number of threads for parallel computing");
796 Opt->
description =
_(
"Name of the input space time dataset");
805 Opt->
description =
_(
"Name of the input space time datasets");
813 Opt->
description =
_(
"Name of the output space time dataset");
821 Opt->
description =
_(
"Name of the input space time raster dataset");
830 Opt->
description =
_(
"Name of the input space time raster datasets");
838 Opt->
description =
_(
"Name of the output space time raster dataset");
841 Opt->
key =
"outputs";
847 Opt->
description =
_(
"Name of the output space time raster datasets");
855 Opt->
description =
_(
"Name of the input space time vector dataset");
864 Opt->
description =
_(
"Name of the input space time vector datasets");
872 Opt->
description =
_(
"Name of the output space time vector dataset");
880 Opt->
description =
_(
"Name of the input space time raster3d dataset");
889 Opt->
description =
_(
"Name of the input space time raster3d datasets");
897 Opt->
description =
_(
"Name of the output space time raster3d dataset");
905 Opt->
options =
"strds,stvds,str3ds";
906 Opt->
description =
_(
"Type of the input space time dataset");
931 Opt->
options =
"raster,vector,raster_3d";
935 Opt->
key =
"temporaltype";
940 Opt->
options =
"absolute,relative";
941 Opt->
description =
_(
"The temporal type of the space time dataset");
948 Opt->
label =
_(
"WHERE conditions of SQL statement without 'where' "
949 "keyword used in the temporal GIS framework");
950 Opt->
description =
_(
"Example: start_time > '2001-01-01 12:30:00'");
953 Opt->
key =
"sampling";
959 Opt->
options =
"start,during,overlap,contain,equal,follows,precedes";
961 _(
"The method to be used for sampling the input dataset");
968 Opt->
label =
_(
"Output format");
972 "json;JSON (JavaScript Object Notation);");
1010 Flg->
label =
_(
"Do not build topology");
1012 _(
"Advantageous when handling a large number of points");
char * G_color_rules_options(void)
Get list of color rules for Option->options.
struct Option * G_define_option(void)
Initializes an Option struct.
char * G_color_rules_description_type(void)
Get color rules description for Option->descriptions.
int G_asprintf(char **, const char *,...) __attribute__((format(printf
struct Flag * G_define_flag(void)
Initializes a Flag struct.
const char * G_getenv_nofatal(const char *)
Get environment variable.
char * G_store(const char *)
Copy string to allocated memory.
#define GV_KEY_COLUMN
Name of default key column.
@ G_OPT_R_BASENAME_OUTPUT
@ G_OPT_R3_TILE_DIMENSION
struct Option * G_define_standard_option(int opt)
Create standardised Option structure.
struct Flag * G_define_standard_flag(int flag)
Create standardised Flag structure.
Structure that stores flag info.
Structure that stores option information.
const char * descriptions