[GRASS GIS] #3600: m.nviz.image doesn't produce any output

classic Classic list List threaded Threaded
128 messages Options
1234 ... 7
Reply | Threaded
Open this post in threaded view
|

[GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
#3600: m.nviz.image doesn't produce any output
---------------------+-------------------------
 Reporter:  guano    |      Owner:  grass-dev@…
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:
Component:  Default  |    Version:  7.0.4
 Keywords:           |        CPU:  Unspecified
 Platform:  MacOSX   |
---------------------+-------------------------
 When trying to create some images with m.nviz.image, but all I get as
 output is a 11 byte ppm...

 All I get is an unreadable ppm with 11 bytes. With format=tif, I get an
 error creating the file (TIFFScanlineSize64: Computed scanline size is
 zero.).

 Opening the ppm file into a text editor, I see that all that was written
 was the header, and that the image size was 0,0:

 P6
 0 0
 255

 navigating trough the code, I see that m.nviz.image calls GS_write_ppm to
 write the file, which is in lib/ogsf/gsd_img_ppm.c:


 int GS_write_ppm(const char *name)
 {
     unsigned int x;
     int y;
     unsigned int xsize, ysize;
     FILE *fp;
     unsigned char *pixbuf;

     gsd_getimage(&pixbuf, &xsize, &ysize);

     if (NULL == (fp = fopen(name, "w"))) {
         G_warning(_("Unable to open file <%s> for writing"), name);
         return (1);
     }

     fprintf(fp, "P6\n%d %d\n255\n", xsize, ysize);

     for (y = ysize - 1; y >= 0; y--) {
         for (x = 0; x < xsize; x++) {
             unsigned char r = pixbuf[(y * xsize + x) * 4 + 0];
             unsigned char g = pixbuf[(y * xsize + x) * 4 + 1];
             unsigned char b = pixbuf[(y * xsize + x) * 4 + 2];

             fputc((int)r, fp);
             fputc((int)g, fp);
             fputc((int)b, fp);
         }

     }
     G_free(pixbuf);
     fclose(fp);

     return (0);
 }


 GS_write_ppm calls gsd_getimage to get the actual image data and size.

 So it seems to me that gsd_getimage is not getting the image?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3600>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Do you have sample data so we can reproduce it? When I worked on this
 module recently, it worked fine.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by guano):

 Sure, I put in on Dropbox, is that ok?

 DEM
 https://www.dropbox.com/s/7dgc0v1ilqi3c2l/sample_dem.tif?dl=0

 Screen grab of the setup I did manually in 3D view
 https://www.dropbox.com/s/e20r8v9127k72mg/screen_nviz.png?dl=0

 command produced by the GUI:

 {{{
 m.nviz.image elevation_map=garopaba_SOLO_bicubic@garopaba_22J -a mode=fine
 resolution_fine=1 color_map=garopaba_SOLO_bicubic@garopaba_22J \
 position=0.50,0.50 height=1719 perspective=28 twist=-95 zexag=1.000000
 focus=434,503,30 \
 light_position=0.68,-0.68,0.80 light_brightness=80 light_ambient=20
 light_color=255:255:255 \
 output=nviz_output format=ppm size=500,500
 }}}

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------
Changes (by hcho):

 * Attachment "nviz_output.png" added.


--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3600>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 {{{
 # assign the projection defined in the sample TIF
 g.proj -c epsg=32723

 # import the sample TIF
 r.in.gdal input=sample_dem.tif output=garopaba_SOLO_bicubic

 # change the region
 g.region rast=garopaba_SOLO_bicubic

 # try your command above
 m.nviz.image elevation_map=garopaba_SOLO_bicubic -a mode=fine
 resolution_fine=1 color_map=garopaba_SOLO_bicubic position=0.50,0.50
 height=1719 perspective=28 twist=-95 zexag=1.000000 focus=434,503,30
 light_position=0.68,-0.68,0.80 light_brightness=80 light_ambient=20
 light_color=255:255:255 output=nviz_output format=ppm size=500,500
 }}}

 produces the attached image (png screenshot because of the size of the
 original ppm).

 Have you tried the latest version of GRASS?

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by guano):

 I'm running 7.4.0 on MacOS compiled with Homebrew. I tried in a Windows
 machine (7.4.0 as well) and the output (or lack of one) was the same. Not
 sure where the problem might be.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Is the output in the attached screenshot expected result BTW? I assumed
 that your sample TIF is garopaba_SOLO_bicubic in my testing.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by guano):

 Yes, it is the expected result.

 I just upgraded to 7.4.1 (via homebrew) and the issue persists.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Not sure what's happening. Please make sure that the projection of your
 mapset is EPSG:32723.
 {{{
 > g.proj -p
 -PROJ_INFO-------------------------------------------------
 name       : WGS 84 / UTM zone 23S
 datum      : wgs84
 ellps      : wgs84
 proj       : utm
 zone       : 23
 south      : defined
 no_defs    : defined
 -PROJ_EPSG-------------------------------------------------
 epsg       : 32723
 -PROJ_UNITS------------------------------------------------
 unit       : meter
 units      : meters
 meters     : 1
 }}}

 and set the region correctly to the DEM.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Maybe, your OpenGL settings? Please try to add some debug messages in
 gsd_getimage in lib/ogsf/gsd_prim.c and see what glGetIntegerv returns.
 Add the following in line 909.

 {{{
 fprintf(stderr, "%d %d, %d %d\n", r, l, t, b);
 }}}

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Or better
 {{{
 fprintf(stderr, "%d %d %d %d\n", tmp[0], tmp[1], tmp[2], tmp[3]);
 }}}

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by guano):

 Here is the output with the debug msg:
 (projection is ok and region as well, I tried with other Location/Mapsets
 and the error is persistent)

 {{{
 Loading raster map <gsb@garopaba_22J>...
  100%
 0 0 0 0
 m.nviz.image complete. File <nviz_output.ppm> created.
 }}}

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by neteler):

 ''Posted on behalf of Michael Barton:''

 I don't know if m.nviz.image depends on wxPython or not. But if it does,
 you might need to check which version you are using and whether you are
 compiling 32 or 64 bit.

 Also, I've got new binaries posted with updated code you might want to
 try. They are on the GRASS for Mac web site [grassmac.wikidot.com]

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by guano):

 Thans Michael, but I got the same results with your binaries

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 I think that this issue is platform dependent.
 {{{glGetIntergerv(GL_VIEWPORT, tmp)}}} returns an empty viewport, which
 should have been defined correctly in {{{Nviz_create_render_window}}}
 (lib/nviz/render.c). This function has three {{{defined}}} for X11, Aqua,
 and Windows. I cannot reproduce this issue on X11, but the issue is
 reported on Aqua and Windows. For Aqua, this routine calls
 aglCreatePBuffer to create a new rendering area using specified width and
 height. Maybe, we should check what value this routine returns.

 https://developer.apple.com/documentation/agl/1392693-aglcreatepbuffer

 If you can compile yourself, maybe you can try this. In
 {{{Nviz_create_render_window}}} in lib/nviz/render.c, line 145 (trunk) or
 find {{{aglCreatePBuffer}}} and print its return value with width and
 height just in case.

 {{{
 if (aglCreatePBuffer(width, height, GL_TEXTURE_2D, GL_RGBA, 0,
 &(rwin->windo    wId)) == GL_FALSE)
     fprintf(stderr, "aglCreatePBuffer failed: %d %d %d\n", width, height,
 aglGetError());
 }}}

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by guano):

 Ok, I added the lines you suggested and compiled it again.

 the output is this one:

 {{{
 aglCreatePBuffer failed: 500 500 10005
 }}}

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Hmm... 10005 is {{{AGL_BAD_DRAWABLE: (# exit 10005 #); (* invalid drawable
 specified *)}}}.
 https://developer.apple.com/documentation/agl/agl_bad_drawable

 Maybe, I'm wrong, but {{{GL_TEXTURE_2D}}} is for textures whose dimensions
 are a power of two. Whatever that means, width=500 and height=500 are not
 a power of two. Please try again after replacing {{{GL_TEXTURE_2D}}} with
 {{{GL_TEXTURE_RECTANGLE_EXT}}}.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 Or in your m.nviz.image command, change {{{size=500,500}}} to
 {{{size=512,512}}}.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 If you can, please try both ({{{GL_TEXTURE_RECTANGLE_EXT}}} and
 {{{size=512,512}}}). GL_TEXTURE_2D and GL_TEXTURE_RECTANGLE_EXT use
 different coordinates, so we need to know if the rest of code works with
 which type of texture. Thanks.

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS
In reply to this post by GRASS GIS
#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hellik):

 Replying to [comment:13 hcho]:
 > I think that this issue is platform dependent.

 what I get in winGRASS

 {{{
 GRASS version: 7.5.svn
 GRASS SVN revision: r72944
 Build date: 2018-07-03
 Build platform: x86_64-w64-mingw32
 GDAL: 2.2.4
 PROJ.4: 4.9.3
 GEOS: 3.5.0
 SQLite: 3.17.0
 Python: 2.7.14
 wxPython: 2.8.12.1
 Platform: Windows-10-10.0.17134 (OSGeo4W)
 }}}


 {{{C:\>m.nviz.image elevation_map=elevation output=D:\temp\mnviz\test\elev
 perspective=15
 Loading raster map <elevation@PERMANENT>...
  100%
 Loading raster map <elevation@PERMANENT>...
  100%
 Translating colors from raster map <elevation@PERMANENT>...
  100%
 WARNING: Unable to open file <D:\temp\mnviz\test\elev.ppm> for writing
 m.nviz.image complete. File <D:\temp\mnviz\test\elev.ppm> created.
 }}}

 {{{
 C:\>m.nviz.image elevation_map=elevation output=D:\temp\mnviz\test\elev
 perspective=15 format=tif
 Loading raster map <elevation@PERMANENT>...
  100%
 Loading raster map <elevation@PERMANENT>...
  100%
 Translating colors from raster map <elevation@PERMANENT>...
  100%
 TIFFOpen: D:\temp\mnviz\test\elev.tif: No such file or directory.
 WARNING: Unable to open file <D:\temp\mnviz\test\elev.tif> for writing
 m.nviz.image complete. File <D:\temp\mnviz\test\elev.tif> created.
 }}}

 will attach the output of set DEBUG=3

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
1234 ... 7