<div dir="ltr">Dear people,<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></div></div></div></div></div></div></div></div></div>
<div><br></div><div>in GRASS GIS 6.4.4 I succesfully display labels in a vector map, in GRASS 7.0.2 it fails. I am not sure whethere I do something wrong or if this is a bug in GRASS 7.x. See my documentation. I described every step and made screenshots.</div><div><br></div><div>And: I checked here (<a href="https://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&type=defect&desc=1&order=id">https://trac.osgeo.org/grass/query?status=assigned&status=new&status=reopened&type=defect&desc=1&order=id</a>) for open issues related to labels, but I found nothing that describes my problem.</div><div><br></div><div><div>== Fehlersuche Labels ==</div><div>* Grass 6.4.4 - WinGRASS-6.4.4-1-Setup.exe</div><div>* Grass 7.0.2 - WinGRASS-7.0.2RC1-1-Setup.exe</div><div>* Grass 7.1   - WinGRASS-7.1.svn-r66704-108-Setup.exe</div><div>installed.</div><div><br></div><div>=== Grass 6 ===</div><div>Steps:</div><div> evtl.: g.remove -f vect=test644</div><div> v.edit tool=create map=test644 layer=1</div><div> v.db.addtable map=test644 layer=1 columns="name VARCHAR(12),color VARCHAR(11),info VARCHAR(128)"</div><div> d.vect -a map=test644 display=shape,attr rgb_column=color icon=basic/circle size=17 attrcol=name lcolor=black bgcolor=yellow lsize=17</div><div><br></div><div>Output:</div><div> Using vector map name as table name: test644</div><div> Creating new DB connection based on default mapset settings...</div><div> Creating table with columns (cat integer, name VARCHAR(12), color VARCHAR(11), info VARCHAR(128))</div><div> Die Tabelle <test644> ist jetzt Teil der Vektorkarte <test644> und kann mit GRASS Modulen gelöscht und überschrieben werden.</div><div> Select-Privilegien wurden für die Tabelle gewährt.</div><div> Lese Objekte...</div><div> Aktualisiere die Datenbank...</div><div> 0 Datensätze aktualisiert/eingefügt (Layer 1).</div><div> Layer <1> Tabelle <test644> in der Datenbank <E:\Users\Philipp von Vangerow.MIR\grassdata\KML_EPSG_4326_Location\playground\sqlite\sqlite.db> mit dem Treiber <sqlite> und der Schlüsselspalte <cat></div><div> Current attribute table links:</div><div> Vectorkarte <test644@playground> ist verbunden durch:</div><div><br></div><div>Start geodata creation via the GUI</div><div>Ebene 1/Kategorie 1</div><div>* name: Foo</div><div>* color: 249:247:166</div><div>* info: Hey there I am Foo!!!</div><div>Ebene 1/Kategorie 2</div><div>* name: Bar</div><div>* color: 65:134:240</div><div>* info: Hey there it is me, Bar!!!</div><div><br></div><div>Result:</div><div>[[Bild:GRASS GIS Fehlerbeschreibung missing labels - Version 6.4.4.jpg]]</div><div><br></div><div>=== GRASS 7.0.2 ===</div><div><br></div><div> evtl.: g.remove -f type=vect name=test702</div><div> v.edit tool=create map=test702 layer=1</div><div> v.db.addtable --verbose map=test702 layer=1 columns=name VARCHAR(12),color VARCHAR(11),info VARCHAR(128)</div><div> d.vect -i map=test702 layer=1 display=shape rgb_column=color icon=basic/circle size=17 attribute_column=name label_color=black label_bgcolor=yellow label_size=17</div><div><br></div><div>Output:</div><div> Creating table with columns (cat integer,name varchar(12),color varchar(11),info varchar(128))...</div><div><br></div><div>Start geodata creation via the GUI</div><div>Ebene 1/Kategorie 1</div><div>* name: Foo</div><div>* color: 249:247:166</div><div>* info: Hey there I am Foo!!!</div><div>Ebene 1/Kategorie 2</div><div>* name: Bar</div><div>* color: 65:134:240</div><div>* info: Hey there it is me, Bar!!!</div><div><br></div><div>See there, got the background but not the text</div><div>[[Bild:GRASS GIS Fehlerbeschreibung missing labels - Version 7.0.2 Column name.jpg]]</div><div><br></div><div>I change to the Info, so I get a much longer background. So this means for computing the size of the background the program succesfullky had access to the attributes. It can only know the larger field size from the longer text!</div><div> d.vect -i map=test702 layer=1 display=shape rgb_column=color icon=basic/circle size=17 attribute_column=info label_color=black label_bgcolor=yellow label_size=17</div><div>[[Bild:GRASS GIS Fehlerbeschreibung missing labels - Version 7.0.2 Column info.jpg]]</div><div><br></div><div>=== GRASS 7.1svn ===</div><div><br></div><div> evtl.: g.remove -f type=vect name=test72svn</div><div> v.edit tool=create map=test72svn layer=1</div><div> v.db.addtable --verbose map=test72svn layer=1 columns="name VARCHAR(12),color VARCHAR(11),info VARCHAR(128)"</div><div> d.vect -i map=test72svn layer=1 display=shape rgb_column=color icon=basic/circle size=17 attribute_column=name label_color=black label_bgcolor=yellow label_size=17</div><div><br></div><div> v.db.addtable --verbose map=test72svn layer=1 columns=name VARCHAR(12),color VARCHAR(11),info VARCHAR(128)</div><div> Using vector map name as table name: <test72svn></div><div> DB settings already defined, nothing to do</div><div> Creating new DB connection based on default mapset settings...</div><div> Creating table with columns (cat integer,name varchar(12),color varchar(11),info varchar(128))...</div><div> ERROR: Layerindex außerhalb des Wertebereichs.</div><div> Traceback (most recent call last):</div><div>   File "C:\Program Files (x86)\GRASS GIS</div><div> 7.1.svn/scripts/<a href="http://v.db.addtable.py">v.db.addtable.py</a>", line 150, in <module></div><div>     sys.exit(main())</div><div>   File "C:\Program Files (x86)\GRASS GIS</div><div> 7.1.svn/scripts/<a href="http://v.db.addtable.py">v.db.addtable.py</a>", line 137, in main</div><div>     option = 'cat', column = key, qlayer = layer)</div><div>   File "C:\Program Files (x86)\GRASS GIS</div><div> 7.1.svn\etc\python\grass\script\core.py", line 409, in</div><div> run_command</div><div>     return handle_errors(returncode, returncode, args,</div><div> kwargs)</div><div>   File "C:\Program Files (x86)\GRASS GIS</div><div> 7.1.svn\etc\python\grass\script\core.py", line 328, in</div><div> handle_errors</div><div>     returncode=returncode)</div><div> grass.exceptions.CalledModuleError: Module run None</div><div> ['v.to.db', 'column=cat', 'map=test72svn', 'layer=1',</div><div> 'qlayer=1', 'option=cat'] ended with error</div><div>  Process ended with non-zero return code 1. See errors in the</div><div> (error) output.</div><div><br></div><div>S...! OK, in the latest daily build I cannot check because of this error.</div></div></div>