[GRASS-dev] [GRASS GIS] #3200: r.colors is lacking color bars for all predefined colortables

GRASS GIS trac at osgeo.org
Sun Nov 20 23:37:34 PST 2016


#3200: r.colors is lacking color bars for all predefined colortables
----------------------+--------------------------------
  Reporter:  milenan  |      Owner:  grass-dev@…
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:  7.0.6
 Component:  Default  |    Version:  7.0.5
Resolution:           |   Keywords:  r.colors, v.colors
       CPU:  x86-64   |   Platform:  MSWindows 8
----------------------+--------------------------------

Comment (by mlennert):

 A bit of a wild guess, but in thumbnails.py I see that the ppm files are
 created with:


 {{{
 def write_ppm(dst, data):
     w = height
     h = width
     fh = open(dst, "wb")
     fh.write("P6\n%d %d\n%d\n" % (w, h, 255))
     data.tofile(fh)
     fh.close()
 }}}

 Could it be that the '\n' are causing problems on Windows ?

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



More information about the grass-dev mailing list