[GRASS-dev] [GRASS GIS] #443: cairo driver: labels are not rendered

#443: cairo driver: labels are not rendered
----------------------+-----------------------------------------------------
Reporter: martinl | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: cairo | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
Cairo driver does not display any labels (PNG driver seems to work). E.g.

{{{
d.vect map=geodetic_swwake_pts@PERMANENT display=shape,cat
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/443&gt;
GRASS GIS <http://grass.osgeo.org>

#443: cairo driver: labels are not rendered
-----------------------+----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cairo
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by glynn):

Replying to [ticket:443 martinl]:
> Cairo driver does not display any labels (PNG driver seems to work).

FWIW, it works for me in 7.0; e.g. (spearfish):
{{{
d.vect fields display=shape,cat
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/443#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#443: cairo driver: labels are not rendered
-----------------------+----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.0
Component: Display | Version: 6.4.0 RCs
Resolution: | Keywords: cairo
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by mmetz):

  * version: svn-trunk => 6.4.0 RCs

Comment:

In the North Carolina dataset,

{{{
d.vect boundary_county attrcol=NAME
}}}

doesn't work for me nowhere, from 6.4.0RC5 through to 7, any display
driver. In 7, I can't even give an attrcol, that option in the wxGUI
behaves as if it's disabled.

{{{
d.vect boundary_county display=shape,cat
}}}

works.

Applies to wxGUI only, not to tcltk.

???

Markus M

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/443#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#443: cairo driver: labels are not rendered
-----------------------+----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.0
Component: Display | Version: 6.4.0 RCs
Resolution: | Keywords: cairo
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by hamish):

Replying to [comment:2 mmetz]:
> In the North Carolina dataset,
  {{{
  d.vect boundary_county attrcol=NAME
  }}}
> doesn't work for me nowhere, from 6.4.0RC5 through to 7, any display
driver. In 7, I can't even give an attrcol, that option in the wxGUI
behaves as if it's disabled.
>
> {{{
> d.vect boundary_county display=shape,cat
> }}}
>
> works.
>
> Applies to wxGUI only, not to tcltk.
>
> ???

the above example is missing disp=attr

e.g., works in 6.5 xmon:
{{{
  #spearfish
  d.vect archsites disp=attr attrcol=str1
}}}

perhaps (attrcol->answer != NULL) should switch on disp=attr if it was not
already given??

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/443#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#443: cairo driver: labels are not rendered
-----------------------+----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.0
Component: Display | Version: 6.4.0 RCs
Resolution: | Keywords: cairo
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by mmetz):

Replying to [comment:3 hamish]:
> Replying to [comment:2 mmetz]:
> > In the North Carolina dataset,
> {{{
> d.vect boundary_county attrcol=NAME
> }}}
> > doesn't work for me nowhere, from 6.4.0RC5 through to 7, any display
driver. In 7, I can't even give an attrcol, that option in the wxGUI
behaves as if it's disabled.
>
> the above example is missing disp=attr

Hmph. Sorry for the noise, everything is fine. Except grass7, still can't
set option attrcol, also when setting disp=attr first.
>
> perhaps (attrcol->answer != NULL) should switch on disp=attr if it was
not already given??
>
Maybe you want the column to be remembered but temporarily switch off
label display?

Markus M

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/443#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#443: cairo driver: labels are not rendered
----------------------+-----------------------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Display | Version: 6.4.0 RCs
Keywords: cairo | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------

Comment(by neteler):

Replying to [ticket:443 martinl]:
> Cairo driver does not display any labels (PNG driver seems to work).
E.g.
>
> {{{
> d.vect map=geodetic_swwake_pts@PERMANENT display=shape,cat
> }}}

Probably solved with r56886?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/443#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#443: cairo driver: labels are not rendered
-----------------------+----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.0
Component: Display | Version: 6.4.0 RCs
Resolution: fixed | Keywords: cairo
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed

Comment:

if there ever was a bug here, it's fixed now.

Hamish wrote:
> perhaps (attrcol->answer != NULL) should switch on disp=attr if
> it was not already given??

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/443#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>