[GRASS-dev] [GRASS GIS] #3606: m.nviz.image produces a screenshot

GRASS GIS trac at osgeo.org
Sun Jul 15 15:35:19 PDT 2018


#3606: m.nviz.image produces a screenshot
-----------------------+-------------------------
  Reporter:  epifanio  |      Owner:  grass-dev@…
      Type:  defect    |     Status:  new
  Priority:  major     |  Milestone:
 Component:  Display   |    Version:  svn-trunk
Resolution:            |   Keywords:
       CPU:  x86-64    |   Platform:  Linux
-----------------------+-------------------------

Comment (by hcho):

 Replying to [comment:4 epifanio]:
 > Applied the patch on latest trunk rev. num.: 72990
 >
 > print out the following output:
 >
 >
 > {{{
 > GRASS 7.5.svn (nc_basic_spm_grass7):~ > m.nviz.image
 elevation_map=elevation output=elev perspective=15 --o
 > Loading raster map <elevation at PERMANENT>...
 >  100%
 > Loading raster map <elevation at PERMANENT>...
 >  100%
 > Translating colors from raster map <elevation at PERMANENT>...
 >  100%
 > buffer: both
 > buffer: both
 > buffer: both
 > buffer: both
 > buffer: both
 > buffer: both
 > buffer: both
 > buffer: swap
 > buffer: both
 > m.nviz.image complete. File <elev.ppm> created.
 >
 > }}}
 >
 > My grass_trunk is configured without X11 support:

 This is my output:
 {{{
 buffer: back
 buffer: both
 buffer: back
 buffer: both
 buffer: back
 buffer: both
 buffer: back
 buffer: swap
 buffer: back
 }}}

 In your case, GS_set_draw(GSD_BACK) never worked. That's weird. Please add
 {{{fprintf(stderr, "draw where: %d\n", where);}}} in line 2465 in
 lib/ogsf/gs2.c. GSD_FRONT 1, GSD_BACK 2, and GSD_BOTH 3 are defined in
 include/ogsf.h.

 Anyway, I think you need X11 support because Nviz requires some Xlib
 functions (XOpenDisplay, XCreatePixmap, XFree, ...) in lib/nviz/render.c.
 Please try it again with X11 support enabled. Is there any specific reason
 why you disabled it?

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3606#comment:5>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list