Skip to content

Commit 8af571a

Browse files
committedFeb 15, 2016
[GRASS] use plain text for r/.proj, fixes partially #2575
1 parent 6f2d11b commit 8af571a

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed
 

‎src/plugins/grass/modules/default.qgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
<grass name="v.extrude.fixed"/>
351351
<grass name="v.extrude.attr"/>
352352
</section>
353-
<section label="Reproject vector from another Location">
353+
<section label="Transform or reproject vector from another Location">
354354
<grass name="v.transform"/>
355355
<grass name="v.proj"/>
356356
</section>

‎src/plugins/grass/modules/r.proj.qgm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">
33

44
<qgisgrassmodule label="Re-project raster from a location to the current location" module="r.proj">
5-
<option key="input" />
6-
<option key="mapset"/>
75
<option key="location"/>
6+
<option key="mapset"/>
7+
<option key="input" widget="text" />
88
<option key="method" />
99
<option key="resolution" />
1010
<option key="output" label="Name for the output raster map (optional)"/>
11-
<option key="dbase" label="Path to GRASS database of input location (optional)"/>
11+
<option key="dbase" label="Path to GRASS database of input location (optional)"/>
1212
</qgisgrassmodule>

‎src/plugins/grass/modules/v.proj.qgm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">
33

44
<qgisgrassmodule label="Projection conversion of vector" module="v.proj">
5-
<option key="input" />
6-
<option key="mapset" />
75
<option key="location" />
6+
<option key="mapset" />
7+
<option key="input" widget="text" />
88
<option key="output" label="Name for output vector map (optional)" />
9-
<option key="dbase" label="Path to GRASS database of input location (optional)" />
9+
<option key="dbase" label="Path to GRASS database of input location (optional)" />
1010
</qgisgrassmodule>

‎src/plugins/grass/qgsgrassmoduleoptions.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,12 @@ QgsGrassModuleStandardOptions::QgsGrassModuleStandardOptions(
200200
{
201201
QString element = promptElem.attribute( "element" );
202202
QString age = promptElem.attribute( "age" );
203+
203204
//QgsDebugMsg("element = " + element + " age = " + age);
204205
if ( age == "old" && ( element == "vector" || element == "cell" ||
205206
element == "strds" || element == "stvds" ||
206-
element == "str3ds" || element == "stds" ) )
207+
element == "str3ds" || element == "stds" )
208+
&& confDomElement.attribute( "widget" ) != "text" )
207209
{
208210
QgsGrassModuleInput *mi = new QgsGrassModuleInput(
209211
mModule, this, key, confDomElement, descDocElem, gnode, mDirect, this );

0 commit comments

Comments
 (0)
Please sign in to comment.