[GRASS-dev] [GRASS GIS] #1077: sync nice features of r.out.tiff, r.out.png

#1077: sync nice features of r.out.tiff, r.out.png
-----------------------------------+----------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Keywords: r.out.tiff, r.out.png | Platform: All
      Cpu: All |
-----------------------------------+----------------------------------------
Hi,

r.out.tiff has a -t flag to create a world file.
r.out.png has a -t flag to make NULL cells transparent.

it would be really useful if they both could have both flags. For use with
gdal2tiles.py + OpenLayers you need both but only can get one or the
other! Probably it is some pretty easy cutting and pasting of code
between the two modules.

GDAL supports extensions of .pgw, .pngw or .wld for PNG World files.
http://gdal.org/frmt_various.html#PNG

(& finally, rename the flags in grass7 to make them consistent)

r.out.gdal is no good here because for OpenLayers you care about the
colors not the data, and gdal is cranky with color maps.

thanks,
Hamish

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

#1077: sync nice features of r.out.tiff, r.out.png
--------------------------+-------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.out.tiff, r.out.png
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):

workaround: run both r.out.tiff and r.out.png and ship the world file from
r.out.tiff with the png from r.out.png

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

#1077: sync nice features of r.out.tiff, r.out.png
--------------------------+-------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.out.tiff, r.out.png
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):

* world file export flag added to r.out.png in trunk (r42410)
   * (now output is good for KML and WMS/TMS overlays!)

  * r.out.tiff's -t flag renamed to -w in trunk to match

does TIFF support transparency?

Hamish

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

#1077: sync nice features of r.out.tiff, r.out.png
--------------------------+-------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.out.tiff, r.out.png
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [comment:2 hamish]:

> does TIFF support transparency?

Yes.

More importantly, transparency is supported by most applications which
read TIFF files. What information can be stored in a TIFF file is often
less important than what information programs which "support TIFF"
understand (e.g. the problems with 16-bit paletted images).

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

#1077: sync nice features of r.out.tiff, r.out.png
-----------------------------------+----------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Keywords: r.out.tiff, r.out.png | Platform: All
      Cpu: All |
-----------------------------------+----------------------------------------

Comment(by hamish):

r.out.png world-file flag backported to 6.5svn in r43655

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