[GRASS-dev] [GRASS GIS] #3546: t.rast.what: issues in one_point_per_col_output()
GRASS GIS
trac at osgeo.org
Tue May 15 15:19:34 PDT 2018
#3546: t.rast.what: issues in one_point_per_col_output()
-----------------------+-------------------------
Reporter: sbl | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: 7.4.0
Resolution: | Keywords: t.rast.what
CPU: All | Platform: All
-----------------------+-------------------------
Comment (by sbl):
Thanks for testing! If there is agreement on removing coordinates if cat
is used, I can change that. Not sure if that can go to 7.4, though???
Please also test attached new diff that fixes the empty column in the
timerow output and an empty line if header is not requested...
Looks now like this:
{{{
t.rast.what strds=A points=points layout=timerow -v
1|115.004358627375|36.3593955782903|1|2|3|4
2|79.681676382576|45.2391522852909|1|2|3|4
3|97.4892579600048|79.2347263950131|1|2|3|4
t.rast.what strds=A points=points layout=timerow -vn
cat|x|y|1990-01-01 00:00:00;1990-02-01 00:00:00|1990-02-01
00:00:00;1990-03-01 00:00:00|1990-03-01 00:00:00;1990-04-01
00:00:00|1990-04-01 00:00:00;1990-05-01 00:00:00
1|115.004358627375|36.3593955782903|1|2|3|4
2|79.681676382576|45.2391522852909|1|2|3|4
3|97.4892579600048|79.2347263950131|1|2|3|4
t.rast.what strds=A points=points layout=timerow
115.004358627375|36.3593955782903|1|2|3|4
79.681676382576|45.2391522852909|1|2|3|4
97.4892579600048|79.2347263950131|1|2|3|4
echo "115 36 Loc1
79 45 Loc2" | t.rast.what -i strds=A layout=timerow -n separator=','
x,y,site,1990-01-01 00:00:00;1990-02-01 00:00:00,1990-02-01
00:00:00;1990-03-01 00:00:00,1990-03-01 00:00:00;1990-04-01
00:00:00,1990-04-01 00:00:00;1990-05-01 00:00:00
115,36,Loc1,1,2,3,4
79,45,Loc2,1,2,3,4
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3546#comment:7>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list