[GRASS-SVN] r61972 - grass/branches/develbranch_6/raster/r.out.gdal

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 15 00:11:43 PDT 2014


Author: neteler
Date: 2014-09-15 00:11:43 -0700 (Mon, 15 Sep 2014)
New Revision: 61972

Modified:
   grass/branches/develbranch_6/raster/r.out.gdal/description.html
Log:
r.out.gdal manual: examples improved

Modified: grass/branches/develbranch_6/raster/r.out.gdal/description.html
===================================================================
--- grass/branches/develbranch_6/raster/r.out.gdal/description.html	2014-09-15 07:08:56 UTC (rev 61971)
+++ grass/branches/develbranch_6/raster/r.out.gdal/description.html	2014-09-15 07:11:43 UTC (rev 61972)
@@ -175,28 +175,40 @@
 
 <h2>EXAMPLES</h2>
 
-<h3>Export the integer raster roads map to GeoTIFF format:</h3>
+<h3>Export the integer raster basin_50K map to GeoTIFF format:</h3>
 <div class="code"><pre>
-r.out.gdal input=roads output=roads.tif type=UInt16
+g.region rast=basin_50K -p
+r.out.gdal input=basin_50K output=basin_50K.tif type=UInt16
 </pre></div>
 <p>
 
 <h3>Export a DCELL raster map in GeoTIFF format suitable for ESRI software:</h3>
 <div class="code"><pre>
-r.out.gdal in=elevation.10m out=ned_elev10m.tif type=Float64 createopt="PROFILE=GeoTIFF,TFW=YES"
+g.region rast=elevation -p
+r.out.gdal in=elevation output=elevation.tif  type=Float64 \
+  createopt="PROFILE=GeoTIFF,TFW=YES"
 </pre></div>
 <p>
-
+<h3>Export a raster map in "Deflate" compressed GeoTIFF format:</h3>
+<div class="code"><pre>
+g.region rast=elevation -p
+r.out.gdal in=elevation output=elevation.tif  type=Float64 \
+  createopt="COMPRESS=DEFLATE"
+</pre></div>
+<p>
 <h3>Export R,G,B imagery bands in GeoTIFF format suitable for ESRI software:</h3>
 <div class="code"><pre>
 i.group group=nc_landsat_rgb input=lsat7_2002_30,lsat7_2002_20,lsat7_2002_10
-r.out.gdal in=nc_landsat_rgb out=nc_landsat_rgb.tif type=Byte createopt="PROFILE=GeoTIFF,INTERLEAVE=PIXEL,TFW=YES"
+g.region rast=lsat7_2002_30 -p
+r.out.gdal in=nc_landsat_rgb output=nc_landsat_rgb.tif type=Byte \
+  createopt="PROFILE=GeoTIFF,INTERLEAVE=PIXEL,TFW=YES"
 </pre></div>
 <p>
 
 <h3>Export the floating point raster elevation map to ERDAS/IMG format:</h3>
 <div class="code"><pre>
-r.out.gdal input=elevation.10m output=elev_dem10.img format=HFA type=Float32
+g.region rast=elevation -p
+r.out.gdal input=elevation output=elelevation.img format=HFA type=Float32
 </pre></div>
 
 <h3>Export group of image maps as multi-band file</h3>
@@ -204,7 +216,8 @@
 g.list group
 i.group group=tm7 subgroup=tm7 input=tm7_10,tm7_20,tm7_30,tm7_40,tm7_50,tm7_60,tm7_70
 i.group -l tm7
-r.out.gdal tm7 type=UInt16 out=lsat_multiband.tif
+g.region rast=tm7_10 -p
+r.out.gdal tm7 output=lsat_multiband.tif
 gdalinfo lsat_multiband.tif
 </pre></div>
 



More information about the grass-commit mailing list