<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#000000" bgcolor="#FFFFFF">
<p>I'd like to point out that the combination of d.title and d.text
is not working also on my system. I don't use the d.* modules any
more, but after seeing the OP's post, I decided to try.</p>
<p><br>
</p>
<p>I'm using Linux Mint, and here's what I tried:</p>
<p><br>
</p>
<p><font size="+1"><tt>GRASS 7.4.0 (WGS84):~ > g.list rast</tt><tt><br>
</tt><tt>....</tt><tt><br>
</tt><tt>srtm_negev_3arc</tt><tt><br>
</tt><tt>....</tt><tt><br>
</tt><tt>GRASS 7.4.0 (WGS84):~ > g.region
rast=srtm_negev_3arc</tt></font></p>
<p><font size="+1"><tt>GRASS 7.4.0 (WGS84):~ > d.mon wx0
# empty monitor appears</tt><tt><br>
</tt><tt>GRASS 7.4.0 (WGS84):~ > d.rast srtm_negev_3arc
# map displays OK</tt><tt><br>
</tt><tt> 100%</tt><tt><br>
</tt><tt># Now I try to add a title:</tt></font></p>
<p><font size="+1"><tt>GRASS 7.4.0 (WGS84):~ > d.title -d
map=srtm_negev_3arc color=red # -d flag should display on
wx0, but...</tt><tt><br>
</tt><tt>GRASS 7.4.0 (WGS84):~ > ERROR: Failed to run command
'd.text</tt><tt><br>
</tt><tt>
input=/home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/11266.0</tt><tt><br>
</tt><tt> at=50,50'. Details:</tt><tt><br>
</tt><tt><br>
</tt><tt> GRASS_INFO_ERROR(11330,1): Unable to open input
file</tt><tt><br>
</tt><tt>
</home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/11266.0></tt><tt><br>
</tt><tt> GRASS_INFO_END(11330,1)</tt></font></p>
<p><span style="font-size: 14px"><font face="monospace"><font
size="+1"><br>
</font></font></span></p>
<p><span style="font-size: 14px"><font face="monospace"><font
size="+1"># The tmp file is indeed missing:</font></font></span></p>
<p><span style="font-size: 14px"></span><font size="+1"><tt>GRASS
7.4.0 (WGS84):~ > ll
/home/micha/GIS/grass/WGS84/PERMANENT/.tmp/TP480/</tt><tt><br>
</tt><tt>total 12</tt><tt><br>
</tt><tt>drwxr-xr-x 3 micha micha 4096 Dec 7 13:21 .</tt><tt><br>
</tt><tt>drwxr-xr-x 3 micha micha 4096 Dec 7 13:19 ..</tt><tt><br>
</tt><tt>-rw-r--r-- 1 micha micha 0 Dec 7 13:40 11143.0.leg</tt><tt><br>
</tt><tt>drwxr-xr-x 3 micha micha 4096 Dec 7 13:20 MONITORS</tt></font><br>
<br>
</p>
<p><font size="+1"><tt># Another try</tt></font></p>
<p><font size="+1"><tt>GRASS 7.4.0 (WGS84):~ > d.title
map=srtm_negev_3arc color=red size=10 | d.text align=cc</tt><tt><br>
</tt><tt>GRASS 7.4.0 (WGS84):~ >
# No title appears</tt></font></p>
<p><font size="+1"><tt><br>
</tt></font></p>
<p><font size="+1"><tt># How about text without d.title<br>
</tt></font></p>
<p><font size="+1"><tt>GRASS 7.4.0 (WGS84):~ > d.text text="My
Title" color=red at=5,5 # Now text appears as
expected!<br>
</tt></font></p>
<p><font size="+1"><tt>GRASS 7.4.0 (WGS84):~ > echo "Second
title" >> my_title.txt<br>
</tt></font></p>
<p><font size="+1"><tt>GRASS 7.4.0 (WGS84):~ > d.text
input=my_title.txt color=red at=25,25 # Again text appears<br>
</tt></font></p>
<p><font size="+1"><tt><br>
</tt></font></p>
<p><font size="+1"><tt># And d.title piped into a file also works:</tt></font></p>
<p><font size="+1"><tt><span style="font-size: 14px">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 # Text appears as expected<br>
</span><br>
</tt></font></p>
<p><font size="+1"><tt><br>
</tt></font></p>
<p><font size="+1">So maybe something is missing/not working in
d.title | d.text combination ??</font><font size="+1"><tt><br>
</tt></font></p>
<p>Regards, Micha</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 12/7/18 1:33 PM, Helmut Kudrnovsky
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1544182392532-0.post@n6.nabble.com">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I just want to ask when i run the module d.title it does shown the title
So why the d.title does not work
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
relevant part taken from the manual:
-------
Output created by d.title can be redirected into a file, or piped directly
into d.text to display the map TITLE created by d.title.
-------
have you tried d.title + d.text?
-----
best regards
Helmut
--
Sent from: <a class="moz-txt-link-freetext" href="http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html">http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html</a>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</body>
</html>