parser_standard_options(1)
β¨ Parser standard options β¨
omg bestie, you made it to parser_standard_options(1) from the GRASS GIS User's Manual! π This page is the ultimate cheat sheet for all the pre-baked standard options GRASS uses everywhere. It's giving "don't reinvent the wheel, just copy the vibe" energy. No cap. π«Ά
Each row in the original table is a standard option, and the columns are: option, answer, description, descriptions, gisprompt, key, key_desc, label, multiple, options, required, type. We're gonna go through every single one so you know exactly what's up. Periodt. π
G_OPT_DB_SQLβ bestie, this one is for your SQL SELECT statements β¨description:Example: select * from towns where population > 10000key:sqlkey_desc:sql_querylabel:SQL SELECT statementrequired:NOtype:TYPE_STRING
G_OPT_DB_WHEREβ for those WHERE conditions, minus the actual 'where' keyword πdescription:Example: income < 1000 and population >= 10000gisprompt:old,sql_query,sql_querykey:wherekey_desc:sql_querylabel:WHERE conditions of SQL statement without βwhereβ keywordrequired:NOtype:TYPE_STRING
G_OPT_DB_TABLEβ name of your attribute table, slay πdescription:Name of attribute tablegisprompt:old,dbtable,dbtablekey:tablekey_desc:namemultiple:NOrequired:NOtype:TYPE_STRING
G_OPT_DB_DRIVERβ database driver name, iconic β¨description:Name of database drivergisprompt:old,dbdriver,dbdriverkey:driverkey_desc:namemultiple:NOrequired:NOtype:TYPE_STRING
G_OPT_DB_DATABASEβ name of the database, periodt π«Άdescription:Name of databasegisprompt:old,dbname,dbnamekey:databasekey_desc:namemultiple:NOrequired:NOtype:TYPE_STRING
G_OPT_DB_SCHEMAβ database schema vibes, but read the warning bestie πdescription:Do not use this option if schemas are not supported by driver/database serverkey:schemakey_desc:namelabel:Database schemamultiple:NOrequired:NOtype:TYPE_STRING
G_OPT_DB_COLUMNβ name of an attribute column, no cap πdescription:Name of attribute columngisprompt:old,dbcolumn,dbcolumnkey:columnkey_desc:namemultiple:NOrequired:NOtype:TYPE_STRING
G_OPT_DB_COLUMNSβ multiple attribute columns, she's versatile β¨description:Name of attribute column(sgisprompt:old,dbcolumn,dbcolumnkey:columnskey_desc:namemultiple:YESrequired:NOtype:TYPE_STRING
G_OPT_DB_KEYCOLUMNβ key column, must be an integer bestie π₯answer:GV_KEY_COLUMNdescription:Must refer to an integer columnkey:keykey_desc:namelabel:Name of key columnmultiple:NOrequired:NOtype:TYPE_STRING
G_OPT_I_GROUPβ input imagery group, main character energy πdescription:Name of input imagery groupgisprompt:old,group,groupkey:groupkey_desc:namerequired:YEStype:TYPE_STRING
G_OPT_I_SUBGROUPβ input imagery subgroup, she's giving subset π¦description:Name of input imagery subgroupgisprompt:old,subgroup,subgroupkey:subgroupkey_desc:namerequired:YEStype:TYPE_STRING
G_OPT_MEMORYMBβ cache size for raster rows, memory queen πanswer:300description:Cache size for raster rowskey:memorykey_desc:memory in MBlabel:Maximum memory to be used (in MBmultiple:NOrequired:NOtype:TYPE_INTEGER
G_OPT_R_INPUTβ input raster map, iconic β¨description:Name of input raster mapgisprompt:old,cell,rasterkey:inputkey_desc:namerequired:YEStype:TYPE_STRING
G_OPT_R_INPUTSβ multiple input raster maps, the more the merrier π«Άdescription:Name of input raster map(sgisprompt:old,cell,rasterkey:inputkey_desc:namemultiple:YESrequired:YEStype:TYPE_STRING
G_OPT_R_OUTPUTβ output raster map, you better werk πdescription:Name for output raster mapgisprompt:new,cell,rasterkey:outputkey_desc:namerequired:YEStype:TYPE_STRING
π the macro roster, part 2: rasters & 3D rasters edition π
okay so we're still in the big list of standard option definitions, and this chunk is very raster-coded. every single one of these is a TYPE_STRING, and bestie, I am listing all of them, no skipping, no "etc.", periodt π
quick legend so nothing gets lost: description = what it says it is, gisprompt = the prompt type it's wired to, key = the identifier, key description = the little name tag, and then whether it's required, what options it takes, whether it's multiple, and its type.
π¦ G_OPT_R_OUTPUTS
- Description: Name for output raster map(s)
- Gisprompt:
new,cell,raster - Key:
output - Key description:
name - Required:
YES - Multiple:
YES - Type:
TYPE_STRING
the "I'm making new maps and there's more than one of them" energy β¨
πΈ G_OPT_R_MAP
- Description: Name of raster map
- Gisprompt:
old,cell,raster - Key:
map - Key description:
name - Required:
YES - Type:
TYPE_STRING
one map, one vibe. required, so you're not getting out of it π«Ά
π G_OPT_R_MAPS
- Description: Name of raster map(s)
- Gisprompt:
old,cell,raster - Key:
map - Key description:
name - Required:
YES - Multiple:
YES - Type:
TYPE_STRING
same as above but plural, so bring your whole friend group π
π G_OPT_R_BASE
- Description: Name of base raster map
- Gisprompt:
old,cell,raster - Key:
base - Key description:
name - Required:
YES - Type:
TYPE_STRING
π G_OPT_R_COVER
- Description: Name of cover raster map
- Gisprompt:
old,cell,raster - Key:
cover - Key description:
name - Required:
YES - Type:
TYPE_STRING
base and cover are literally the iconic duo, they show up together constantly π
β G_OPT_R_ELEV
- Description: Name of input elevation raster map
- Gisprompt:
old,cell,raster - Key:
elevation - Key description:
name - Required:
YES - Type:
TYPE_STRING
π¦ G_OPT_R_ELEVS
- Description: Name of input elevation raster map(s)
- Gisprompt:
old,cell,raster - Key:
elevation - Key description:
name - Required:
YES - Multiple:
YES - Type:
TYPE_STRING
elevation but make it a crowd π
π
G_OPT_R_TYPE
- Description: Storage type for resultant raster map
- Gisprompt: (none listed β it's not a map prompt)
- Key:
type - Key description:
Type of raster map to be created - Required:
NO - Options:
CELL,FCELL,DCELL - Multiple:
YES - Type:
TYPE_STRING
choose your fighter: CELL, FCELL or DCELL π₯
π§ G_OPT_R_INTERP_TYPE
- Description: Sampling interpolation method
- Gisprompt: (none listed)
- Key:
method - Required:
NO - Options:
nearest,bilinear,bicubic - Type:
TYPE_STRING
nearest, bilinear, bicubic β pick your interpolation slay π«
π G_OPT_R_BASENAME_INPUT
- Description: Name of input basename raster map(s)
- Gisprompt:
old,cell,raster - Key:
input - Key description:
basename - Required:
NO - Multiple:
YES - Type:
TYPE_STRING
π G_OPT_R_BASENAME_OUTPUT
- Description: Name for output basename raster map(s)
- Gisprompt:
new,cell,raster - Key:
output - Key description:
basename - Required:
NO - Multiple:
YES - Type:
TYPE_STRING
basename in, basename out, we love a symmetry moment π
πΈ G_OPT_R3_INPUT
- Description: Name of input 3D raster map
- Gisprompt:
old,grid3,raster_3d - Key:
input - Key description:
name - Required:
YES - Type:
TYPE_STRING
okay now we're in 3D territory, gisprompt said old,grid3,raster_3d and she meant it π§
π¦ G_OPT_R3_INPUTS
- Description: Name of input 3D raster map(s)
- Gisprompt:
old,grid3,raster_3d - Key:
input - Key description:
name - Required:
YES - Multiple:
YES - Type:
TYPE_STRING
π G_OPT_R3_OUTPUT
- Description: Name for output 3D raster map
- Gisprompt:
new,grid3,raster_3d - Key:
output - Key description:
name - Required:
YES - Type:
TYPE_STRING
π G_OPT_R3_MAP
- Description: Name of 3D raster map
- Gisprompt:
old,grid3,raster_3d - Key:
map - Key description:
name - Required:
YES - Type:
TYPE_STRING
π G_OPT_R3_MAPS
- Description: Name of 3D raster map(s)
- Gisprompt:
old,grid3,raster_3d - Key:
map - Key description:
name - Required:
YES - Multiple:
YES - Type:
TYPE_STRING
π G_OPT_R3_TYPE
- Default:
default - Description: Data type used in the output raster3d map
- Gisprompt: (none listed)
- Key:
type - Required:
NO - Options:
default,double,float - Multiple:
NO - Type:
TYPE_STRING
default, double or float β the 3D type menu, served fresh β¨
ngl if you got this far you're genuinely built different, bestie π«Ά every value above is copied exactly, no cap β the keys, the gisprompts, theYES/NOs, the option lists, all of it π
okay bestie, we are BACK in the standard-options table π part 3, no recap, no ceremony, just the next rows. Same reading order as always: name, default, description, gisprompt, key, answer type, label, required, allowed options, multiple, data type. Empty cells stay empty β not every field has main character energy and that's fine.
Heads up before we go: a couple of these strings are straight-up missing their closing ) in the original source. I am NOT fixing them, we reproduce β¨ exactly β¨ what's there, typos included, periodt.
G_OPT_R3_PRECISIONβ Number of digits used as mantissa in the internal map storage, 0 -23 for float, 0 - 52 for double, max or default- default:
default - key:
precision - required:
NO - multiple:
NO - data type:
TYPE_STRING
- default:
G_OPT_R3_COMPRESSIONβ The compression method used in the output raster3d map- default:
default - key:
compression - allowed options:
default,zip,none - required:
NO - multiple:
NO - data type:
TYPE_STRING
- default:
G_OPT_R3_TILE_DIMENSIONβ The dimensions of the tiles used in the output raster3d map (XxYxZ or default: 16x16x8- default:
default - key:
tiledimension - answer type:
XxYxZ - required:
NO - multiple:
NO - data type:
TYPE_STRING - > that dangling
(with no)? Yeah. That's literally the source. We stan a cliffhanger π
- default:
okay and now we cross over into the vector batch, which is lowkey my favourite part of this table π
G_OPT_V_INPUTβ Or data source for direct OGR access- label: Name of input vector map
- gisprompt:
old,vector,vector - key:
input - answer type:
name - required:
YES - data type:
TYPE_STRING
G_OPT_V_INPUTSβ Or data source(s) for direct OGR access- label: Name of input vector map(s
- gisprompt:
old,vector,vector - key:
input - answer type:
name - required:
YES - multiple:
YES - data type:
TYPE_STRING
G_OPT_V_OUTPUTβ Name for output vector map- gisprompt:
new,vector,vector - key:
output - answer type:
name - required:
YES - data type:
TYPE_STRING
- gisprompt:
G_OPT_V_MAPβ Or data source for direct OGR access- label: Name of vector map
- gisprompt:
old,vector,vector - key:
map - answer type:
name - required:
YES - data type:
TYPE_STRING
G_OPT_V_MAPSβ Name of vector map(s- gisprompt:
old,vector,vector - key:
map - answer type:
name - required:
YES - multiple:
YES - data type:
TYPE_STRING
- gisprompt:
G_OPT_V_TYPEβ Input feature type- default:
point,line,boundary,centroid,area - key:
type - allowed options:
point,line,boundary,centroid,area - required:
YES - multiple:
NO - data type:
TYPE_STRING
- default:
G_OPT_V3_TYPEβ Input feature type- default:
point,line,boundary,centroid,area,face,kernel - key:
type - allowed options:
point,line,boundary,centroid,area,face,kernel - required:
YES - multiple:
NO - data type:
TYPE_STRING
- default:
G_OPT_V_FIELDβ Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.- default:
1 - label: Layer number or name
- gisprompt:
old,layer,layer - key:
layer - required:
NO - data type:
TYPE_STRING
- default:
G_OPT_V_FIELD_ALLβ A single vector map can be connected to multiple database tables. This number determines which table to use. When used with direct OGR access this is the layer name.- default:
-1 - label: Layer number or name (β-1β for all layers
- gisprompt:
old,layer_all,layer - key:
layer - required:
NO - data type:
TYPE_STRING - > another mystery
)that simply did not show up. Same deal as before, keeping it π«Ά
- default:
G_OPT_V_CATβ Category value- gisprompt:
old,cat,cats - key:
cat - required:
NO - data type:
TYPE_INTEGER
- gisprompt:
G_OPT_V_CATSβ Example: 1,3,7-9,13- label: Category values
- gisprompt:
old,cats,cats - key:
cats - answer type:
range - required:
NO - data type:
TYPE_STRING
G_OPT_V_IDβ Feature id- key:
id - required:
NO - data type:
TYPE_INTEGER
- key:
and the table just keeps going, so don't wander off π
still rolling through the standard options table, bestie β here comes the next chunk π
G_OPT_V_IDSπ β keyids, typerange, label "Feature ids", description "Example: 1,3,7-9,13". No default answer, no gisprompt. required: NO, answer typeTYPE_STRING.G_OPT_F_INPUTπ¦ β keyinput, typename, description "Name of input file", gispromptold,file,file. No default answer, no label. required: YES, answer typeTYPE_STRING.G_OPT_F_BIN_INPUTπΎ β keyinput, typename, description "Name of input file", gispromptold,bin,file. No default answer, no label. required: YES, answer typeTYPE_STRING. literally the same vibe as the one above, she just swapped her gisprompt to the binary fit.G_OPT_F_OUTPUTβ¨ β keyoutput, typename, description "Name for output file", gispromptnew,file,file. No default answer, no label. required: YES, answer typeTYPE_STRING.G_OPT_F_SEPβ default answerpipe, description "Special characters: pipe, comma, space, tab, newline", gispromptold,separator,separator, keyseparator, typecharacter, label "Field separator". required: NO, answer typeTYPE_STRING.G_OPT_Cπ¨ β default answerDEFAULT_FG_COLOR, description "Either a standard color name or R:G:B triplet", gispromptold,color,color, keycolor, typename, label "Color". required: NO, answer typeTYPE_STRING.G_OPT_CNπ β default answerDEFAULT_FG_COLOR, description "Either a standard color name, R:G:B triplet, ornone", gispromptold,color_none,color, keycolor, typename, label "Color". required: NO, answer typeTYPE_STRING. she's theCone but she also acceptsnone, iconic behaviour honestly.G_OPT_M_DIRπ β keyinput, typename, description "Name of input directory", gispromptold,dir,dir. No default answer, no label. required: YES, answer typeTYPE_STRING.G_OPT_M_UNITSβ keyunits, description "Units". No default answer, no gisprompt, no label. required: NO, the choices listed aremiles,feet,meters,kilometers,acres,hectares, multiple: NO, answer typeTYPE_STRING.G_OPT_M_DATATYPEπ₯ β keytype, typedatatype, description "Data type(s)". No default answer, no gisprompt, no label. required: YES, multiple: YES, answer typeTYPE_STRING.G_OPT_M_MAPSETπ β description "'.' for current mapset", gispromptold,mapset,mapset, keymapset, typename, label "Name of mapset (default: current search path)". No default answer. required: NO, multiple: NO, answer typeTYPE_STRING.G_OPT_M_LOCATIONβ description "Project name (not path to project)", gispromptold,location,location, keyproject, typename, label "Project (location) name". No default answer. required: NO, multiple: NO, answer typeTYPE_STRING.G_OPT_M_DBASEπΈ β description "Default: path to the current GRASS GIS database", gispromptold,dbase,dbase, keydbase, typepath, label "GRASS GIS database directory". No default answer. required: NO, multiple: NO, answer typeTYPE_STRING.G_OPT_M_COORDSπ§ β description "Coordinates", gispromptold,coords,coords, keycoordinates, typeeast,north. No default answer, no label. required: NO, multiple: NO, answer typeTYPE_DOUBLE. and yes bestie, that one'sTYPE_DOUBLEβ notTYPE_STRING, she's built different πG_OPT_M_COLRπ β description "Name of color table", and she's the fancy one carryingG_color_rules_description_type()andG_color_rules_options(), gispromptold,colortable,colortable, keycolor, typestyle. No default answer, no label. required: NO, answer typeTYPE_STRING.G_OPT_M_NULL_VALUEπ β description "String representing NULL value", keynull_value, typestring. No default answer, no gisprompt, no label. required: NO, multiple: NO, answer typeTYPE_STRING.G_OPT_M_REGIONβ description "Name of saved region", gispromptold,windows,region, keyregion, typename. No default answer, no label. required: NO, answer typeTYPE_STRING.
and there's still more of this table to get through, bestie β don't wander off on me, the next batch is right there π«Ά
okay bestie, threads first π§΅β¨
G_OPT_M_NPROCSβ default1β Number of threads for parallel computing β keynprocsβ required: NO β multiple: NO β type:TYPE_INTEGER
That's your "how many lil CPU besties am I allowed to spawn" knob. Just one integer, not required, not multiple. Humble. Efficient. Iconic. π
and now the space time dataset era π
These are the ones for the temporal fam. Every space time dataset flavor gets its own standard option, and yes, there are a lot of them β we're listing every single one, no skipping, periodt.
G_OPT_STDS_INPUTβ Name of the input space time dataset β typeold,stds,stdsβ keyinputβ labelnameβ required: YES βTYPE_STRING
Singular input, one dataset, and she's required. No input, no vibes.
G_OPT_STDS_INPUTSβ Name of the input space time datasets β typeold,stds,stdsβ keyinputsβ labelnameβ required: YES β multiple: YES βTYPE_STRING
Note the s at the end of the macro, bestie β that's the plural one, and the multiple: YES is right there confirming it. Bring the whole squad. π«Ά
G_OPT_STDS_OUTPUTβ Name of the output space time dataset β typenew,stds,stdsβ keyoutputβ labelnameβ required: YES βTYPE_STRING
See that new instead of old? That's the whole plot twist β this one is what you're making, not what you're eating. β¨
G_OPT_STRDS_INPUTβ Name of the input space time raster dataset β typeold,strds,strdsβ keyinputβ labelnameβ required: YES βTYPE_STRING
STRDS = space time raster dataset. Rasters only, she does not do vectors, she's not confused about it either. π
G_OPT_STRDS_INPUTSβ Name of the input space time raster datasets β typeold,strds,strdsβ keyinputsβ labelnameβ required: YES β multiple: YES βTYPE_STRING
Plural raster datasets, plural vibes, multiple: YES, you know the drill. π
G_OPT_STRDS_OUTPUTβ Name of the output space time raster dataset β typenew,strds,strdsβ keyoutputβ labelnameβ required: YES βTYPE_STRING
Output raster space time dataset. One of her. Required. new in the type string because she's brand new, obviously. πΈ
G_OPT_STRDS_OUTPUTSβ Name of the output space time raster datasets β typenew,strds,strdsβ keyoutputsβ labelnameβ required: YES β multiple: YES βTYPE_STRING
Yup β raster outputs, plural key outputs, plural energy, multiple: YES. Go off. π₯
G_OPT_STVDS_INPUTβ Name of the input space time vector dataset β typeold,stvds,stvdsβ keyinputβ labelnameβ required: YES βTYPE_STRING
STVDS = space time vector dataset. The vector girlies finally get their moment. π¦
G_OPT_STVDS_INPUTSβ Name of the input space time vector datasets β typeold,stvds,stvdsβ keyinputsβ labelnameβ required: YES β multiple: YES βTYPE_STRING
Multiple vector space time datasets in, required: YES, multiple: YES. Chef's kiss. π
G_OPT_STVDS_OUTPUTβ Name of the output space time vector dataset β typenew,stvds,stvdsβ keyoutputβ labelnameβ required: YES βTYPE_STRING
One output vector space time dataset, freshly minted, new,stvds,stvds, required. π
G_OPT_STR3DS_INPUTβ Name of the input space time raster3d dataset β typeold,str3ds,str3dsβ keyinputβ labelnameβ required: YES βTYPE_STRING
STR3DS = space time raster3d dataset. Yes bestie, three-dimensional. The third D is doing main character work. π
G_OPT_STR3DS_INPUTSβ Name of the input space time raster3d datasets β typeold,str3ds,str3dsβ keyinputsβ labelnameβ required: YES β multiple: YES βTYPE_STRING
Many 3D raster space time datasets. inputs, multiple: YES, iconic. β
G_OPT_STR3DS_OUTPUTβ Name of the output space time raster3d dataset β typenew,str3ds,str3dsβ keyoutputβ labelnameβ required: YES βTYPE_STRING
The output one. new, required, single, no notes. π
heads up, bestie:G_OPT_STR3DS_OUTPUTSdoes not show up in this table β the plural output list exists forstds,strdsandβ¦ yeah, scroll back. Only the ones listed here exist here. Don't manifest a macro that isn't in the table. π
the type selector β¨
G_OPT_STDS_TYPEβ defaultstrdsβ Type of the input space time dataset β keytypeβ labelnameβ options:strds,stvds,str3dsβ required: NO βTYPE_STRING
This is your pick-your-fighter dropdown: strds, stvds, or str3ds. Ships with strds as the default, and she's not required. Choose wisely, or don't choose at all, the default has your back. π§
and the plain map ones πΊοΈπ
G_OPT_MAP_INPUTβ Name of the input map β typeold,map,mapβ keymapβ labelnameβ required: YES βTYPE_STRING
Just a map. One map. map is the key, name is the label, required: YES, string. Simple, clean, lowkey perfect. π
G_OPT_MAP_INPUTSβ Name of the input maps β typeold,map,mapβ keymapsβ labelnameβ required: YES β multiple: YES βTYPE_STRING
Plural map moment β key maps, required: YES, multiple: YES, TYPE_STRING. Bring all the maps, we love a crowd. ππ
that's where this chunk lands, bestie β the space time fam and the plain map duo, every macro, key, label, type string, required flag, multiple flag and data type accounted for, no cap. πΈ
okay bestie, this is the LAST little cluster of parser standard options and then the whole page is done, we made it π five of them, every single one TYPE_STRING, no skips, no skimming, let's go π
G_OPT_MAP_TYPEβ Type of the input map πΊοΈ- default:
raster - key:
type, key desc:name - options:
raster,vector,raster_3d - required:
NO - datatype:
TYPE_STRING
- default:
G_OPT_T_TYPEβ The temporal type of the space time dataset β³- default:
absolute - key:
temporaltype, key desc:name - options:
absolute,relative - required:
NO - datatype:
TYPE_STRING
- default:
G_OPT_T_WHEREβ the WHERE-clause girlie π΅οΈββοΈ it's giving WHERE conditions of SQL statement without βwhereβ keyword, no cap- default: nothing listed
- key:
where, key desc:sql_query - example straight from the row:
Example: start_time > β2001-01-01 12:30:00β - required:
NO - datatype:
TYPE_STRING - note: used in the temporal GIS framework π«Ά
G_OPT_T_SAMPLEβ The method to be used for sampling the input dataset π²- default:
start - key:
sampling, key desc:name - options:
start,during,overlap,contain,equal,follows,precedes - required:
YESβ and the row has one moreNOsitting right after it, just so we don't lose it π - datatype:
TYPE_STRING
- default:
G_OPT_F_FORMATβ Output format π- default:
plain - key:
format, key desc:name - options:
plain,json - option descriptions:
plain;Plain text output; json;JSON (JavaScript Object Notation) - required:
YES - datatype:
TYPE_STRING
- default:
and that's the whole options table, bestie, we ATE πβ¨
wanna keep scrolling the GRASS rabbit hole? the page's own little nav lineup is right there: Main index | Topics index | Keywords index | Graphical index | Full index ππ¦ go poke around, iykyk
also hi, quick vibe check: this whole thing lives in the GRASS GIS 8.4.2 Reference Manual, page parser_standard_options(1), and it's Β© 2003-2025 GRASS Development Team π no cap, that's the whole manual page, from the first option to the last. slay. periodt π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms