<div dir="ltr"><div>Hello,</div><div><br></div><div>It's fixed in trunk r73884.</div><div><br></div><div>Regards,</div><div>Huidae</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 10, 2018 at 2:17 AM Micha Silver <<a href="mailto:tsvibar@gmail.com">tsvibar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In a recent thread [1] a user complained that he could not get d.title <br>
to add a title to a map display.<br>
<br>
<br>
I'd like to point out that the combination of d.title and d.text is not <br>
working also on my system. I don't use the d.* modules much any more, <br>
but after seeing the OP's post, I decided to test.<br>
<br>
<br>
I'm using Linux Mint, and here's what I tried:<br>
<br>
<br>
<br>
GRASS 7.4.0 (WGS84):~ > g.list rast<br>
....<br>
srtm_negev_3arc<br>
....<br>
GRASS 7.4.0 (WGS84):~ > g.region rast=srtm_negev_3arc<br>
<br>
GRASS 7.4.0 (WGS84):~ > d.mon wx0             # empty monitor appears<br>
GRASS 7.4.0 (WGS84):~ > d.rast srtm_negev_3arc         # map displays OK<br>
  100%<br>
# Now I try to add a title:<br>
<br>
GRASS 7.4.0 (WGS84):~ > d.title -d map=srtm_negev_3arc color=red     # <br>
-d flag should display on wx0, but...<br>
GRASS 7.4.0 (WGS84):~ > ERROR: Failed to run command 'd.text<br>
input=/home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/11266.0<br>
        at=50,50'. Details:<br>
<br>
        GRASS_INFO_ERROR(11330,1): Unable to open input file<br>
</home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/11266.0><br>
        GRASS_INFO_END(11330,1)<br>
<br>
<br>
# The tmp file is indeed missing:<br>
<br>
GRASS 7.4.0 (WGS84):~ > ll /home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/<br>
total 12<br>
drwxr-xr-x 3 micha micha 4096 Dec  7 13:21 .<br>
drwxr-xr-x 3 micha micha 4096 Dec  7 13:19 ..<br>
-rw-r--r-- 1 micha micha    0 Dec  7 13:40 11143.0.leg<br>
drwxr-xr-x 3 micha micha 4096 Dec  7 13:20 MONITORS<br>
<br>
# Another try<br>
<br>
GRASS 7.4.0 (WGS84):~ > d.title map=srtm_negev_3arc color=red size=10 | <br>
d.text align=cc<br>
GRASS 7.4.0 (WGS84):~ >             # No title appears<br>
<br>
<br>
# How about text without d.title<br>
<br>
GRASS 7.4.0 (WGS84):~ > d.text text="My Title" color=red at=5,5         <br>
# Now text appears as expected!<br>
<br>
GRASS 7.4.0 (WGS84):~ > echo "Second title" >> my_title.txt<br>
<br>
GRASS 7.4.0 (WGS84):~ > d.text input=my_title.txt color=red at=25,25     <br>
# Again text appears<br>
<br>
<br>
# And d.title piped into a file also works:<br>
<br>
GRASS 7.4.0 (WGS84):~ > d.title map=srtm_negev_3arc > my_title2.txt<br>
GRASS 7.4.0 (WGS84):~ > cat my_title2.txt<br>
.C black<br>
.S 4.000000<br>
LOCATION: WGS84<br>
srtm_negev_3arc in PERMANENT<br>
<br>
North:      32.00  South:      29.00<br>
West:       33.00  East:       36.00<br>
Resolution: n-s:    0.00  e-w:    0.00<br>
GRASS 7.4.0 (WGS84):~ > d.text input=my_title2.txt color=red at=75,75    <br>
# Text appears as expected<br>
<br>
<br>
So maybe something is missing/not working in d.title | d.text combination ??<br>
<br>
Regards, Micha<br>
<br>
<br>
<br>
<br>
[1] <a href="https://lists.osgeo.org/pipermail/grass-user/2018-December/079778.html" rel="noreferrer" target="_blank">https://lists.osgeo.org/pipermail/grass-user/2018-December/079778.html</a><br>
<br>
-- <br>
Micha Silver<br>
Ben Gurion Univ.<br>
Sde Boker, Remote Sensing Lab<br>
+972-523-665918<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><div><div dir="ltr">Huidae Cho, Ph.D., GISP, PE (MD), CFM, M.ASCE<br>Open Source GIS Developer, GRASS GIS Development Team</div></div></span></div></div></div></div></div></div></div></div>