[GRASS-dev] [GRASS GIS] #3540: graphical modeler problems with sql in v.extract

#3540: graphical modeler problems with sql in v.extract
-------------------------+-------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
I have a model in graphical modeler in which I want to extract features
using

v.extract input=bodem@PERMANENT where="bodemcode LIKE 'pZ%' OR bodemcode
LIKE 'Z%'" output=sand

When used in the graphical modeler, I am getting the error message:

Model is not valid. Do you want to run the model anyway? v.extract:
undefined variable '""'

It seems it is not parsing the where statement. Any idea?

Feedback from Martin Landa on the email list:

right, it seems to be bug - modeler threats everything between two '%'
as variable name

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3540&gt;
GRASS GIS <https://grass.osgeo.org>

#3540: graphical modeler problems with sql in v.extract
--------------------------+-------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: modeler
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by martinl):

* keywords: => modeler
* version: unspecified => svn-trunk
* component: Default => wxGUI
* milestone: => 7.4.1

Old description:

I have a model in graphical modeler in which I want to extract features
using

v.extract input=bodem@PERMANENT where="bodemcode LIKE 'pZ%' OR bodemcode
LIKE 'Z%'" output=sand

When used in the graphical modeler, I am getting the error message:

Model is not valid. Do you want to run the model anyway? v.extract:
undefined variable '""'

It seems it is not parsing the where statement. Any idea?

Feedback from Martin Landa on the email list:

right, it seems to be bug - modeler threats everything between two '%'
as variable name

New description:

I have a model in graphical modeler in which I want to extract features
using

{{{
v.extract input=bodem@PERMANENT where="bodemcode LIKE 'pZ%' OR bodemcode
LIKE 'Z%'" output=sand
}}}

When used in the graphical modeler, I am getting the error message:

{{{
Model is not valid. Do you want to run the model anyway? v.extract:
undefined variable '""'
}}}

It seems it is not parsing the where statement. Any idea?

Feedback from Martin Landa on the email list:

right, it seems to be bug - modeler threats everything between two '%'
as variable name

--

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3540#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>