[GRASS-dev] Standard option identifiers

Hi list

I’m developing some script in “grass gis”, and I have some doubt that the documentation will not answer me (https://grass.osgeo.org/programming7/gis_8h.html)

What is the diference betwen G_OPT_R_INPUT and G_OPT_R_MAP ?

if I have a geoprocess has two input raster layers, which of these two options standares I use to define these inputs?

Another related question: what are the values that support the keyword “type” in the definition of the head of the code?

In my example, I implemented a script with python scripting library, it takes two raster layers as inputs and outputs a raster layer.
The defintion header is:

option: G_OPT_R_INPUT

type : string

option: G_OPT_R_INPUT

type : string

It is correct?

Or, the correct is:

option: G_OPT_R_INPUT

type : raster

option: G_OPT_R_INPUT

type : raster

Thanks in advanced

···

Pablo J. Zader
Universidad Nacional de Córdoba

GIS and remote sensing developer

Lic. en Cs. de la Computación

Mgtr. Aplicaciones en Espaciales de Alerta y Respuesta Temprana a Emergencias

pablo.zader@gmail.com

"Los Grandes Hombres hablan sobre ideas…
Los Hombres Promedio hablan sobre cosas…
Los Hombres Pequeños hablan… de otros Hombres.

del libro Matemática estas ahi? A. Paenza "

pjzgeo wrote

Hi list

I'm developing some script in "grass gis", and I have some doubt that the
documentation will not answer me (
https://grass.osgeo.org/programming7/gis_8h.html)

What is the diference betwen G_OPT_R_INPUT and G_OPT_R_MAP ?

if I have a geoprocess has two input raster layers, which of these two
options standares I use to define these inputs?

Another related question: what are the values that support the keyword
"type" in the definition of the head of the code?

In my example, I implemented a script with python scripting library, it
takes
two raster layers as inputs and outputs a raster layer.
The defintion header is:

option: G_OPT_R_INPUT
type : string

option: G_OPT_R_INPUT
type : string

It is correct?

Or, the correct is:

option: G_OPT_R_INPUT
type : raster

option: G_OPT_R_INPUT
type : raster

Thanks in advanced

--
*Pablo J. Zader*
*Universidad Nacional de Córdoba*

*GIS and remote sensing developer--*
*Lic. en Cs. de la Computación*
*Mgtr. Aplicaciones en Espaciales de Alerta y Respuesta Temprana a
Emergencias*
*--*
*

pablo.zader@

<

pablo.zader@

>*

*"Los Grandes Hombres hablan sobre ideas... Los Hombres Promedio hablan
sobre cosas... Los Hombres Pequeños hablan.. de otros Hombres.*
*del libro Matemática estas ahi? A. Paenza "*

_______________________________________________
grass-dev mailing list

grass-dev@.osgeo

http://lists.osgeo.org/mailman/listinfo/grass-dev

Have a look at

https://grass.osgeo.org/grass72/manuals/parser_standard_options.html

G_OPT_R_INPUTS
type : string

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Standard-option-identifiers-tp5293721p5293724.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

On Tue, Nov 1, 2016 at 2:10 AM, pablo zader <pzader@gmail.com> wrote:

Hi list

I'm developing some script in "grass gis", and I have some doubt that the
documentation will not answer me
(https://grass.osgeo.org/programming7/gis_8h.html)

What is the diference betwen G_OPT_R_INPUT and G_OPT_R_MAP ?

The key for G_OPT_R_INPUT is "input", while the key for G_OPT_R_MAP is
"map". Typically, you would use G_OPT_R_INPUT if the module also has
an output option and G_OPT_R_MAP if the module does not have an output
option, e.g. r.info.

HTH,

Markus M

if I have a geoprocess has two input raster layers, which of these two
options standares I use to define these inputs?

Another related question: what are the values that support the keyword
"type" in the definition of the head of the code?

In my example, I implemented a script with python scripting library, it
takes two raster layers as inputs and outputs a raster layer.
The defintion header is:

option: G_OPT_R_INPUT
type : string

option: G_OPT_R_INPUT
type : string

It is correct?

Or, the correct is:

option: G_OPT_R_INPUT
type : raster

option: G_OPT_R_INPUT
type : raster

Thanks in advanced

--
Pablo J. Zader
Universidad Nacional de Córdoba
GIS and remote sensing developer
--
Lic. en Cs. de la Computación
Mgtr. Aplicaciones en Espaciales de Alerta y Respuesta Temprana a
Emergencias
--
pablo.zader@gmail.com

"Los Grandes Hombres hablan sobre ideas...
Los Hombres Promedio hablan sobre cosas...
Los Hombres Pequeños hablan.. de otros Hombres.

del libro Matemática estas ahi? A. Paenza "

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Oct 31, 2016 at 11:38 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

G_OPT_R_INPUTS
type : string

Once there is G_OPT_R_INPUTS, you don't need to provide `type: string`
that's provided automatically. Typically you change key or
description/label.