Skip to content

Commit 76a9bbc

Browse files
author
pcav
committed
Improvements to the GRASS toolbox - take 1 from the hackfest
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14546 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2288b3c commit 76a9bbc

File tree

7 files changed

+38
-1
lines changed

7 files changed

+38
-1
lines changed

src/plugins/grass/modules-6.3/default.qgc

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<grass name="v.in.ogr.all.loc"/>
3737
<grass name="v.in.dxf"/>
3838
<grass name="v.in.e00"/>
39+
<grass name="v.in.ascii"/>
3940
<grass name="v.in.mapgen"/>
4041
<grass name="v.in.db"/>
4142
<grass name="v.in.garmin"/>

src/plugins/grass/modules-6.4/default.qgc

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
<grass name="v.in.ogr.all.loc"/>
6565
<grass name="v.in.dxf"/>
6666
<grass name="v.in.e00"/>
67+
<grass name="v.in.ascii"/>
6768
<grass name="v.in.mapgen"/>
6869
<grass name="v.in.db"/>
6970
<grass name="v.in.garmin"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Use a simple shell loop, to process each of the images.
3+
mkdir thumbnails
4+
# for $a in *.png
5+
# echo $a
6+
# do convert -thumbnail $a 32x32 thumbnails/$f.png
7+
#done
8+
9+
# Use find to substitute filenames into a 'convert' command
10+
# This also provides the ability to recurse though directories by removing
11+
# the -prune option, as well as doing other file checks (like image type,
12+
# or the disk space used by an image).
13+
find * -prune -name '*.png' \
14+
-exec convert '{}' -alpha set -channel RGBA -fill none -opaque white \
15+
-thumbnail x32 thumbnails/'{}' \;
16+
# -alpha set -channel RGBA -fill none -opaque white test.png
17+
#for i in `find . -name "*.png`
18+
#echo $i
19+
#do
20+
# convert $i -thumbnail 32x32 `basename $i.png`.png
21+
#done
22+
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">
3+
4+
<qgisgrassmodule label="Import text file" module="v.in.ascii">
5+
<file key="input" label="Text file"/>
6+
<option key="output"/>
7+
<option key="format"/>
8+
<option key="fs" label="Separator (| , \t etc.)" />
9+
<option key="skip" label="Number of rows to be skipped"/>
10+
<option key="x" label="Which column for the X coordinate? The first is 1"/>
11+
<option key="y" label="Which column for the Y coordinate?"/>
12+
<option key="z" label="Which column for the Z coordinate? If 0, z coordinate is not used"/>
13+
</qgisgrassmodule>

src/plugins/grass/modules-common/v.net.iso.qgm

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<qgisgrassmodule label="Cut network by cost isolines" module="v.net.iso">
55
<option key="input" layeroption="alayer" typemask="line,boundary" label="Input arcs" id="arcs" />
66
<option key="input" mapid="arcs" layeroption="nlayer" typemask="point" label="Input nodes" id="nodes" />
7-
<selection key="ccats" layerid="nodes" label="Cats" />
7+
<selection key="ccats" layerid="nodes" label="Cats (select from the map or using their id)" />
88
<option key="costs" />
99
<option key="output" />
1010
</qgisgrassmodule>

0 commit comments

Comments
 (0)