Opened 16 years ago

Closed 12 years ago

#370 closed defect (fixed)

nviz_cmd produces images with 1 pixel size

Reported by: jachym Owned by: grass-dev@…
Priority: minor Milestone: 6.4.3
Component: Tcl/Tk NVIZ Version: svn-trunk
Keywords: commandline, nviz_cmd Cc:
CPU: x86-32 Platform: Linux


Testing new nviz_cmd, it produces only image of 1x1 size:

GRASS 7.0.svn (spearfish60):~ > nviz_cmd color_map=elevation.dem elevation_map=elevation.dem output=image

Loading raster map <elevation.dem@PERMANENT>...
Loading raster map <elevation.dem@PERMANENT>...
Translating colors from raster map <elevation.dem@PERMANENT>...
Vertical exaggeration not given, using calculated value 1
Viewpoint height not given, using calculated value 10561
nviz_cmd complete. File <image.ppm> created.

GRASS 7.0.svn (spearfish60):~ > identify image.ppm
image.ppm PNM 1x1 1x1+0+0 DirectClass 8-bit 14b 

Change History (8)

comment:1 by hamish, 16 years ago

Milestone: 6.4.0

comment:2 by martinl, 16 years ago


nviz_cmd seems to work on my machine (grass6/grass7).

g.region rast=elevation.dem
nviz_cmd color_map=elevation.dem elevation_map=elevation.dem output=image
identify image.ppm 
image.ppm PNM 640x480 640x480+0+0 DirectClass 8-bit 900.014kb 0.070u 0:02

comment:3 by hamish, 16 years ago

G64> g.region rast=elevation.dem
G64> nviz_cmd color_map=elevation.dem elevation_map=elevation.dem output=image
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  24
  Current serial number in output stream:  24

? H

comment:4 by martinl, 16 years ago


comment:5 by cmbarton, 15 years ago

Component: NVIZwxGUI

Probably better looked at with other wxPython issues rather than old NVIZ (TclTk and C++) issues.

comment:6 by martinl, 15 years ago

Component: wxGUINVIZ

comment:7 by helena, 15 years ago

is this still valid ? It works for me in grass65, mybe it applies only to grass7 and milestone should be changed then?

nviz_cmd JRxytz9908_4mt60_00006 mode=fine resolution_fine=1 output=jr3d_nvizcmdtest format=tif size=300,300

GRASS 6.5.svn > gdalinfo jr3d_nvizcmdtest.tif

Driver: GTiff/GeoTIFF Files: jr3d_nvizcmdtest.tif Size is 300, 300

the result is the same with ppm format

comment:8 by neteler, 12 years ago

Resolution: fixed
Status: newclosed

Tested in GRASS 6.4.svn:

GRASS 6.4.3svn (spearfish60):~ > g.region rast=elevation.dem -p
GRASS 6.4.3svn (spearfish60):~ > m.nviz.image color_map=elevation.dem \
      elevation_map=elevation.dem output=image

... output is fine.

The same for GRASS 7.svn. Closing as fixed (recently some fixes have been applied to m.nviz.image).

Note: See TracTickets for help on using tickets.