---
name: "parser_standard_options"
section: "1grass"
platform: "linux"
package: "grass-doc"
version: "8.4.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/parser_standard_options"
---

# parser\_standard\_options(1grass)

## Parser standard options

| | | | | | | | | | | | | | | | | | | | | | | |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| option |  | answer |  | description |  | descriptions |  | gisprompt |  | key |  | key\_desc |  | label |  | multiple |  | options |  | required |  | type |
| G\_OPT\_DB\_SQL |  |  |  | Example: select \* from towns where population \> 10000 |  |  |  |  |  | sql |  | sql\_query |  | SQL SELECT statement |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_WHERE |  |  |  | Example: income \< 1000 and population \>= 10000 |  |  |  | old,sql\_query,sql\_query |  | where |  | sql\_query |  | WHERE conditions of SQL statement without ’where’ keyword |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_TABLE |  |  |  | Name of attribute table |  |  |  | old,dbtable,dbtable |  | table |  | name |  |  |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_DRIVER |  |  |  | Name of database driver |  |  |  | old,dbdriver,dbdriver |  | driver |  | name |  |  |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_DATABASE |  |  |  | Name of database |  |  |  | old,dbname,dbname |  | database |  | name |  |  |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_SCHEMA |  |  |  | Do not use this option if schemas are not supported by driver/database server |  |  |  |  |  | schema |  | name |  | Database schema |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_COLUMN |  |  |  | Name of attribute column |  |  |  | old,dbcolumn,dbcolumn |  | column |  | name |  |  |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_COLUMNS |  |  |  | Name of attribute column(s |  |  |  | old,dbcolumn,dbcolumn |  | columns |  | name |  |  |  | YES |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_DB\_KEYCOLUMN |  | GV\_KEY\_COLUMN |  | Must refer to an integer column |  |  |  |  |  | key |  | name |  | Name of key column |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_I\_GROUP |  |  |  | Name of input imagery group |  |  |  | old,group,group |  | group |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_I\_SUBGROUP |  |  |  | Name of input imagery subgroup |  |  |  | old,subgroup,subgroup |  | subgroup |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_MEMORYMB |  | 300 |  | Cache size for raster rows |  |  |  |  |  | memory |  | memory in MB |  | Maximum memory to be used (in MB |  | NO |  |  |  | NO |  | TYPE\_INTEGER |
| G\_OPT\_R\_INPUT |  |  |  | Name of input raster map |  |  |  | old,cell,raster |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_INPUTS |  |  |  | Name of input raster map(s |  |  |  | old,cell,raster |  | input |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_OUTPUT |  |  |  | Name for output raster map |  |  |  | new,cell,raster |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_OUTPUTS |  |  |  | Name for output raster map(s |  |  |  | new,cell,raster |  | output |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_MAP |  |  |  | Name of raster map |  |  |  | old,cell,raster |  | map |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_MAPS |  |  |  | Name of raster map(s |  |  |  | old,cell,raster |  | map |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_BASE |  |  |  | Name of base raster map |  |  |  | old,cell,raster |  | base |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_COVER |  |  |  | Name of cover raster map |  |  |  | old,cell,raster |  | cover |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_ELEV |  |  |  | Name of input elevation raster map |  |  |  | old,cell,raster |  | elevation |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_ELEVS |  |  |  | Name of input elevation raster map(s |  |  |  | old,cell,raster |  | elevation |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_TYPE |  |  |  | Storage type for resultant raster map |  |  |  |  |  | type |  |  |  | Type of raster map to be created |  | NO |  | CELL,FCELL,DCELL |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_INTERP\_TYPE |  |  |  | Sampling interpolation method |  |  |  |  |  | method |  |  |  |  |  |  |  | nearest,bilinear,bicubic |  | NO |  | TYPE\_STRING |
| G\_OPT\_R\_BASENAME\_INPUT |  |  |  | Name of input basename raster map(s |  |  |  | old,cell,raster |  | input |  | basename |  |  |  | NO |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R\_BASENAME\_OUTPUT |  |  |  | Name for output basename raster map(s |  |  |  | new,cell,raster |  | output |  | basename |  |  |  | NO |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R3\_INPUT |  |  |  | Name of input 3D raster map |  |  |  | old,grid3,raster\_3d |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R3\_INPUTS |  |  |  | Name of input 3D raster map(s |  |  |  | old,grid3,raster\_3d |  | input |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R3\_OUTPUT |  |  |  | Name for output 3D raster map |  |  |  | new,grid3,raster\_3d |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R3\_MAP |  |  |  | Name of 3D raster map |  |  |  | old,grid3,raster\_3d |  | map |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R3\_MAPS |  |  |  | Name of 3D raster map(s |  |  |  | old,grid3,raster\_3d |  | map |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_R3\_TYPE |  | default |  | Data type used in the output raster3d map |  |  |  |  |  | type |  |  |  |  |  | NO |  | default,double,float |  | NO |  | TYPE\_STRING |
| G\_OPT\_R3\_PRECISION |  | default |  | Number of digits used as mantissa in the internal map storage, 0 -23 for float, 0 - 52 for double, max or default |  |  |  |  |  | precision |  |  |  |  |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_R3\_COMPRESSION |  | default |  | The compression method used in the output raster3d map |  |  |  |  |  | compression |  |  |  |  |  | NO |  | default,zip,none |  | NO |  | TYPE\_STRING |
| G\_OPT\_R3\_TILE\_DIMENSION |  | default |  | The dimensions of the tiles used in the output raster3d map (XxYxZ or default: 16x16x8 |  |  |  |  |  | tiledimension |  | XxYxZ |  |  |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_V\_INPUT |  |  |  | Or data source for direct OGR access |  |  |  | old,vector,vector |  | input |  | name |  | Name of input vector map |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_V\_INPUTS |  |  |  | Or data source(s) for direct OGR access |  |  |  | old,vector,vector |  | input |  | name |  | Name of input vector map(s |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_V\_OUTPUT |  |  |  | Name for output vector map |  |  |  | new,vector,vector |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_V\_MAP |  |  |  | Or data source for direct OGR access |  |  |  | old,vector,vector |  | map |  | name |  | Name of vector map |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_V\_MAPS |  |  |  | Name of vector map(s |  |  |  | old,vector,vector |  | map |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_V\_TYPE |  | point,line,boundary,centroid,area |  | Input feature type |  |  |  |  |  | type |  |  |  |  |  | YES |  | point,line,boundary,centroid,area |  | NO |  | TYPE\_STRING |
| G\_OPT\_V3\_TYPE |  | point,line,boundary,centroid,area,face,kernel |  | Input feature type |  |  |  |  |  | type |  |  |  |  |  | YES |  | point,line,boundary,centroid,area,face,kernel |  | NO |  | TYPE\_STRING |
| G\_OPT\_V\_FIELD |  | 1 |  | 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. |  |  |  | old,layer,layer |  | layer |  |  |  | Layer number or name |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_V\_FIELD\_ALL |  | -1 |  | 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. |  |  |  | old,layer\_all,layer |  | layer |  |  |  | Layer number or name (’-1’ for all layers |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_V\_CAT |  |  |  | Category value |  |  |  | old,cat,cats |  | cat |  |  |  |  |  |  |  |  |  | NO |  | TYPE\_INTEGER |
| G\_OPT\_V\_CATS |  |  |  | Example: 1,3,7-9,13 |  |  |  | old,cats,cats |  | cats |  | range |  | Category values |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_V\_ID |  |  |  | Feature id |  |  |  |  |  | id |  |  |  |  |  |  |  |  |  | NO |  | TYPE\_INTEGER |
| G\_OPT\_V\_IDS |  |  |  | Example: 1,3,7-9,13 |  |  |  |  |  | ids |  | range |  | Feature ids |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_F\_INPUT |  |  |  | Name of input file |  |  |  | old,file,file |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_F\_BIN\_INPUT |  |  |  | Name of input file |  |  |  | old,bin,file |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_F\_OUTPUT |  |  |  | Name for output file |  |  |  | new,file,file |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_F\_SEP |  | pipe |  | Special characters: pipe, comma, space, tab, newline |  |  |  | old,separator,separator |  | separator |  | character |  | Field separator |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_C |  | DEFAULT\_FG\_COLOR |  | Either a standard color name or R:G:B triplet |  |  |  | old,color,color |  | color |  | name |  | Color |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_CN |  | DEFAULT\_FG\_COLOR |  | Either a standard color name, R:G:B triplet, or \\none\\ |  |  |  | old,color\_none,color |  | color |  | name |  | Color |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_DIR |  |  |  | Name of input directory |  |  |  | old,dir,dir |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_M\_UNITS |  |  |  | Units |  |  |  |  |  | units |  |  |  |  |  | NO |  | miles,feet,meters,kilometers,acres,hectares |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_DATATYPE |  |  |  | Data type(s |  |  |  |  |  | type |  | datatype |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_M\_MAPSET |  |  |  | ’.’ for current mapset |  |  |  | old,mapset,mapset |  | mapset |  | name |  | Name of mapset (default: current search path |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_LOCATION |  |  |  | Project name (not path to project |  |  |  | old,location,location |  | project |  | name |  | Project (location) name |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_DBASE |  |  |  | Default: path to the current GRASS GIS database |  |  |  | old,dbase,dbase |  | dbase |  | path |  | GRASS GIS database directory |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_COORDS |  |  |  | Coordinates |  |  |  | old,coords,coords |  | coordinates |  | east,north |  |  |  | NO |  |  |  | NO |  | TYPE\_DOUBLE |
| G\_OPT\_M\_COLR |  |  |  | Name of color table |  | G\_color\_rules\_description\_type( |  | old,colortable,colortable |  | color |  | style |  |  |  |  |  | G\_color\_rules\_options( |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_NULL\_VALUE |  |  |  | String representing NULL value |  |  |  |  |  | null\_value |  | string |  |  |  | NO |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_REGION |  |  |  | Name of saved region |  |  |  | old,windows,region |  | region |  | name |  |  |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_M\_NPROCS |  | 1 |  | Number of threads for parallel computing |  |  |  |  |  | nprocs |  |  |  |  |  | NO |  |  |  | NO |  | TYPE\_INTEGER |
| G\_OPT\_STDS\_INPUT |  |  |  | Name of the input space time dataset |  |  |  | old,stds,stds |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STDS\_INPUTS |  |  |  | Name of the input space time datasets |  |  |  | old,stds,stds |  | inputs |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STDS\_OUTPUT |  |  |  | Name of the output space time dataset |  |  |  | new,stds,stds |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STRDS\_INPUT |  |  |  | Name of the input space time raster dataset |  |  |  | old,strds,strds |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STRDS\_INPUTS |  |  |  | Name of the input space time raster datasets |  |  |  | old,strds,strds |  | inputs |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STRDS\_OUTPUT |  |  |  | Name of the output space time raster dataset |  |  |  | new,strds,strds |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STRDS\_OUTPUTS |  |  |  | Name of the output space time raster datasets |  |  |  | new,strds,strds |  | outputs |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STVDS\_INPUT |  |  |  | Name of the input space time vector dataset |  |  |  | old,stvds,stvds |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STVDS\_INPUTS |  |  |  | Name of the input space time vector datasets |  |  |  | old,stvds,stvds |  | inputs |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STVDS\_OUTPUT |  |  |  | Name of the output space time vector dataset |  |  |  | new,stvds,stvds |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STR3DS\_INPUT |  |  |  | Name of the input space time raster3d dataset |  |  |  | old,str3ds,str3ds |  | input |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STR3DS\_INPUTS |  |  |  | Name of the input space time raster3d datasets |  |  |  | old,str3ds,str3ds |  | inputs |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STR3DS\_OUTPUT |  |  |  | Name of the output space time raster3d dataset |  |  |  | new,str3ds,str3ds |  | output |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_STDS\_TYPE |  | strds |  | Type of the input space time dataset |  |  |  |  |  | type |  | name |  |  |  |  |  | strds,stvds,str3ds |  | NO |  | TYPE\_STRING |
| G\_OPT\_MAP\_INPUT |  |  |  | Name of the input map |  |  |  | old,map,map |  | map |  | name |  |  |  |  |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_MAP\_INPUTS |  |  |  | Name of the input maps |  |  |  | old,map,map |  | maps |  | name |  |  |  | YES |  |  |  | YES |  | TYPE\_STRING |
| G\_OPT\_MAP\_TYPE |  | raster |  | Type of the input map |  |  |  |  |  | type |  | name |  |  |  |  |  | raster,vector,raster\_3d |  | NO |  | TYPE\_STRING |
| G\_OPT\_T\_TYPE |  | absolute |  | The temporal type of the space time dataset |  |  |  |  |  | temporaltype |  | name |  |  |  |  |  | absolute,relative |  | NO |  | TYPE\_STRING |
| G\_OPT\_T\_WHERE |  |  |  | Example: start\_time \> ’2001-01-01 12:30:00’ |  |  |  |  |  | where |  | sql\_query |  | WHERE conditions of SQL statement without ’where’ keyword used in the temporal GIS framework |  |  |  |  |  | NO |  | TYPE\_STRING |
| G\_OPT\_T\_SAMPLE |  | start |  | The method to be used for sampling the input dataset |  |  |  |  |  | sampling |  | name |  |  |  | YES |  | start,during,overlap,contain,equal,follows,precedes |  | NO |  | TYPE\_STRING |
| G\_OPT\_F\_FORMAT |  | plain |  |  |  | plain;Plain text output; json;JSON (JavaScript Object Notation |  |  |  | format |  | name |  | Output format |  |  |  | plain,json |  | YES |  | TYPE\_STRING |

Main index \| Topics index \| Keywords index \| Graphical index \| Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
