<div dir="ltr">Hi people,<div><br></div><div>Helmut's advice to rebuild the fonts with the</div><div>g.mkfontcap -o</div><div>solved my problem.</div><div><br></div><div>Thank you very much, Helmut!!!</div><div><br></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial"><div style="font-size:small"><br></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-11-03 19:59 GMT+01:00 Helmut Kudrnovsky <span dir="ltr"><<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Philipp von Vangerow wrote<br>
<div><div class="h5">> Dear people,<br>
><br>
> in GRASS GIS 6.4.4 I succesfully display labels in a vector map, in GRASS<br>
> 7.0.2 it fails. I am not sure whethere I do something wrong or if this is<br>
> a<br>
> bug in GRASS 7.x. See my documentation. I described every step and made<br>
> screenshots.<br>
><br>
> And: I checked here (<br>
> <a href="https://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&type=defect&desc=1&order=id" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&type=defect&desc=1&order=id</a>)<br>
> for open issues related to labels, but I found nothing that describes my<br>
> problem.<br>
><br>
> == Fehlersuche Labels ==<br>
> * Grass 6.4.4 - WinGRASS-6.4.4-1-Setup.exe<br>
> * Grass 7.0.2 - WinGRASS-7.0.2RC1-1-Setup.exe<br>
> * Grass 7.1   - WinGRASS-7.1.svn-r66704-108-Setup.exe<br>
> installed.<br>
><br>
> === Grass 6 ===<br>
> Steps:<br>
>  evtl.: g.remove -f vect=test644<br>
>  v.edit tool=create map=test644 layer=1<br>
>  v.db.addtable map=test644 layer=1 columns="name VARCHAR(12),color<br>
> VARCHAR(11),info VARCHAR(128)"<br>
>  d.vect -a map=test644 display=shape,attr rgb_column=color<br>
> icon=basic/circle size=17 attrcol=name lcolor=black bgcolor=yellow<br>
> lsize=17<br>
><br>
> Output:<br>
>  Using vector map name as table name: test644<br>
>  Creating new DB connection based on default mapset settings...<br>
>  Creating table with columns (cat integer, name VARCHAR(12), color<br>
> VARCHAR(11), info VARCHAR(128))<br>
>  Die Tabelle<br>
> <test644><br>
>  ist jetzt Teil der Vektorkarte<br>
> <test644><br>
>  und kann<br>
> mit GRASS Modulen gelöscht und überschrieben werden.<br>
>  Select-Privilegien wurden für die Tabelle gewährt.<br>
>  Lese Objekte...<br>
>  Aktualisiere die Datenbank...<br>
>  0 Datensätze aktualisiert/eingefügt (Layer 1).<br>
>  Layer <1> Tabelle<br>
> <test644><br>
</div></div>>  in der Datenbank &lt;E:\Users\Philipp von<br>
> Vangerow.MIR\grassdata\KML_EPSG_4326_Location\playground\sqlite\sqlite.db&gt;<br>
<span class="">> mit dem Treiber<br>
> <sqlite><br>
>  und der Schlüsselspalte<br>
> <cat><br>
>  Current attribute table links:<br>
</span>>  Vectorkarte &lt;test644@playground&gt; ist verbunden durch:<br>
<div><div class="h5">><br>
> Start geodata creation via the GUI<br>
> Ebene 1/Kategorie 1<br>
> * name: Foo<br>
> * color: 249:247:166<br>
> * info: Hey there I am Foo!!!<br>
> Ebene 1/Kategorie 2<br>
> * name: Bar<br>
> * color: 65:134:240<br>
> * info: Hey there it is me, Bar!!!<br>
><br>
> Result:<br>
> [[Bild:GRASS GIS Fehlerbeschreibung missing labels - Version 6.4.4.jpg]]<br>
><br>
> === GRASS 7.0.2 ===<br>
><br>
>  evtl.: g.remove -f type=vect name=test702<br>
>  v.edit tool=create map=test702 layer=1<br>
>  v.db.addtable --verbose map=test702 layer=1 columns=name<br>
> VARCHAR(12),color<br>
> VARCHAR(11),info VARCHAR(128)<br>
>  d.vect -i map=test702 layer=1 display=shape rgb_column=color<br>
> icon=basic/circle size=17 attribute_column=name label_color=black<br>
> label_bgcolor=yellow label_size=17<br>
><br>
> Output:<br>
>  Creating table with columns (cat integer,name varchar(12),color<br>
> varchar(11),info varchar(128))...<br>
><br>
> Start geodata creation via the GUI<br>
> Ebene 1/Kategorie 1<br>
> * name: Foo<br>
> * color: 249:247:166<br>
> * info: Hey there I am Foo!!!<br>
> Ebene 1/Kategorie 2<br>
> * name: Bar<br>
> * color: 65:134:240<br>
> * info: Hey there it is me, Bar!!!<br>
><br>
> See there, got the background but not the text<br>
> [[Bild:GRASS GIS Fehlerbeschreibung missing labels - Version 7.0.2 Column<br>
> name.jpg]]<br>
><br>
> I change to the Info, so I get a much longer background. So this means for<br>
> computing the size of the background the program succesfullky had access<br>
> to<br>
> the attributes. It can only know the larger field size from the longer<br>
> text!<br>
>  d.vect -i map=test702 layer=1 display=shape rgb_column=color<br>
> icon=basic/circle size=17 attribute_column=info label_color=black<br>
> label_bgcolor=yellow label_size=17<br>
> [[Bild:GRASS GIS Fehlerbeschreibung missing labels - Version 7.0.2 Column<br>
> info.jpg]]<br>
><br>
> === GRASS 7.1svn ===<br>
><br>
>  evtl.: g.remove -f type=vect name=test72svn<br>
>  v.edit tool=create map=test72svn layer=1<br>
>  v.db.addtable --verbose map=test72svn layer=1 columns="name<br>
> VARCHAR(12),color VARCHAR(11),info VARCHAR(128)"<br>
>  d.vect -i map=test72svn layer=1 display=shape rgb_column=color<br>
> icon=basic/circle size=17 attribute_column=name label_color=black<br>
> label_bgcolor=yellow label_size=17<br>
><br>
>  v.db.addtable --verbose map=test72svn layer=1 columns=name<br>
> VARCHAR(12),color VARCHAR(11),info VARCHAR(128)<br>
>  Using vector map name as table name:<br>
> <test72svn><br>
>  DB settings already defined, nothing to do<br>
>  Creating new DB connection based on default mapset settings...<br>
>  Creating table with columns (cat integer,name varchar(12),color<br>
> varchar(11),info varchar(128))...<br>
>  ERROR: Layerindex außerhalb des Wertebereichs.<br>
>  Traceback (most recent call last):<br>
>    File "C:\Program Files (x86)\GRASS GIS<br>
>  7.1.svn/scripts/<a href="http://v.db.addtable.py" rel="noreferrer" target="_blank">v.db.addtable.py</a>", line 150, in<br>
> <module><br>
>      sys.exit(main())<br>
>    File "C:\Program Files (x86)\GRASS GIS<br>
>  7.1.svn/scripts/<a href="http://v.db.addtable.py" rel="noreferrer" target="_blank">v.db.addtable.py</a>", line 137, in main<br>
>      option = 'cat', column = key, qlayer = layer)<br>
>    File "C:\Program Files (x86)\GRASS GIS<br>
>  7.1.svn\etc\python\grass\script\core.py", line 409, in<br>
>  run_command<br>
>      return handle_errors(returncode, returncode, args,<br>
>  kwargs)<br>
>    File "C:\Program Files (x86)\GRASS GIS<br>
>  7.1.svn\etc\python\grass\script\core.py", line 328, in<br>
>  handle_errors<br>
>      returncode=returncode)<br>
>  grass.exceptions.CalledModuleError: Module run None<br>
>  ['v.to.db', 'column=cat', 'map=test72svn', 'layer=1',<br>
>  'qlayer=1', 'option=cat'] ended with error<br>
>   Process ended with non-zero return code 1. See errors in the<br>
>  (error) output.<br>
><br>
> S...! OK, in the latest daily build I cannot check because of this error.<br>
><br>
</div></div>> _______________________________________________<br>
> grass-user mailing list<br>
<br>
> grass-user@.osgeo<br>
<br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
><br>
> GRASS GIS 6.4.4 Foo-Bar.jpg (41K)<br>
> &lt;<a href="http://osgeo-org.1560.x6.nabble.com/attachment/5234256/0/GRASS%20GIS%206.4.4%20Foo-Bar.jpg&gt" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/attachment/5234256/0/GRASS%20GIS%206.4.4%20Foo-Bar.jpg&gt</a>;<br>
> GRASS GIS 7.0.2 Foo-Bar info attr.jpg (35K)<br>
> &lt;<a href="http://osgeo-org.1560.x6.nabble.com/attachment/5234256/1/GRASS%20GIS%207.0.2%20Foo-Bar%20info%20attr.jpg&gt" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/attachment/5234256/1/GRASS%20GIS%207.0.2%20Foo-Bar%20info%20attr.jpg&gt</a>;<br>
> GRASS GIS 7.0.2 Foo-Bar name attr.jpg (30K)<br>
> &lt;<a href="http://osgeo-org.1560.x6.nabble.com/attachment/5234256/2/GRASS%20GIS%207.0.2%20Foo-Bar%20name%20attr.jpg&gt" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/attachment/5234256/2/GRASS%20GIS%207.0.2%20Foo-Bar%20name%20attr.jpg&gt</a>;<br>
<br>
Which Windows version are you using?<br>
<br>
Win XP, win 7, win 8, win 10?<br>
<br>
There is an issue (already a ticket in trac) with a not updated list of<br>
fonts in the standalone winGRASS installer, especially in newer Windows<br>
versions >7<br>
<br>
Do you have any special security levels in your Windows box setup?<br>
<br>
Try g.mkfontcap -o<br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Labels-in-GRASS-7-Do-I-do-wrong-or-is-this-a-bug-tp5234256p5234269.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Labels-in-GRASS-7-Do-I-do-wrong-or-is-this-a-bug-tp5234256p5234269.html</a><br>
Sent from the Grass - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div><br></div></div>