[GRASS-dev] [GRASS GIS] #3721: d.title with d.text does not insert title
GRASS GIS
trac at osgeo.org
Fri Dec 28 00:45:10 PST 2018
#3721: d.title with d.text does not insert title
-------------------------------+-------------------------
Reporter: micha | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.4.4
Component: Display | Version: 7.4.0
Keywords: title map display | CPU: Unspecified
Platform: Linux |
-------------------------------+-------------------------
When using d.title combined directly with d.text, no title appears on the
map display. The d.title flag -d does not create the tmp file with title
text, and piping the output of d.title into d.text does not create any
title.
i.e.:
{{{
GRASS 7.4.0 (WGS84):~ > d.title -d map=srtm_negev_3arc color=red #
GRASS 7.4.0 (WGS84):~ > ERROR: Failed to run command 'd.text
input=/home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/11266.0
at=50,50'. Details:
GRASS_INFO_ERROR(11330,1): Unable to open input file
</home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/11266.0>
GRASS_INFO_END(11330,1)
}}}
or
{{{
GRASS 7.4.0 (WGS84):~ > d.title map=srtm_negev_3arc color=red size=10 |
d.text align=cc
GRASS 7.4.0 (WGS84):~ > # No error but NO title appears
}}}
The only option that works is to redirect d.title into a text file, then
run d.text:
{{{
GRASS 7.4.0 (WGS84):~ > d.title map=srtm_negev_3arc > my_title2.txt
GRASS 7.4.0 (WGS84):~ > d.text input=my_title2.txt color=red at=75,75
# Text appears as expected
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3721>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list