.TH r.out.gdal.sh 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBr.out.gdal.sh\fR\fR - Exports GRASS raster into GDAL supported formats. .SH KEYWORDS raster, export .SH SYNOPSIS \fBr.out.gdal.sh\fR .br \fBr.out.gdal.sh help\fR .br \fBr.out.gdal.sh\fR [\-\fBlr\fR] [\fBinput\fR=\fIstring\fR] [\fBformat\fR=\fIstring\fR] [\fBtype\fR=\fIstring\fR] [\fBoutput\fR=\fIstring\fR] [\fBcreateopt\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBmetaopt\fR=\fIstring\fR[,\fIstring\fR,...]] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-l\fR" 4m .br List supported output formats .IP "\fB\-r\fR" 4m .br Region sensitive output .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBinput\fR=\fIstring\fR" 4m .br Name of input raster map .IP "\fBformat\fR=\fIstring\fR" 4m .br GIS format to write (case sensitive, see also \-l flag) .br Options: \fIAAIGrid,BMP,BSB,DTED,ELAS,ENVI,FIT,GIF,GTiff,HFA,JPEG,MEM,MFF,MFF2,NITF,PAux,PNG,PNM,VRT,XPM\fR .br Default: \fIGTiff\fR .IP "\fBtype\fR=\fIstring\fR" 4m .br File type .br Options: \fIByte,Int16,UInt16,UInt32,Int32,Float32,Float64,CInt16,CInt32,CFloat32,CFloat64\fR .IP "\fBoutput\fR=\fIstring\fR" 4m .br Name for output file .IP "\fBcreateopt\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Creation option to the output format driver. Multiple options may be listed .IP "\fBmetaopt\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Metadata key passed on the output dataset if possible .PP .SH DESCRIPTION WARNING: \fBThis module is superseded and will be removed in future versions of GRASS. Use the much faster \fIr.out.gdal\fR instead.\fR \fIr.out.gdal.sh\fR outputs GRASS raster maps into various GIS formats as supported by GDAL. This script is based on 'gdal_translate', it's parameters are similar to those of \(cqgdal_translate'. It requires the installation of either GDAL with GRASS support or of the GDAL-OGR-GRASS plugin which is available from the GDAL web site. .PP For possible \fImetaopt\fR parameters see the 'supported formats' pages of GDAL. The \fIcreateopt\fR may be used to create TFW or World files ("TFW=YES", \(dqWORLDFILE=ON"). .SH SUPPORTED FORMATS The set of supported formats written by \fIr.out.gdal.sh\fR depend on the local GDAL installation. Available may be (incomplete list): .PP \fC .DS .br AAIGrid: Arc/Info ASCII Grid .br BMP: MS Windows Device Independent Bitmap .br BSB: Maptech BSB Nautical Charts .br DTED: DTED Elevation Raster .br ELAS: ELAS .br ENVI: ENVI .hdr Labelled .br FIT: FIT Image .br GIF: Graphics Interchange Format (.gif) .br GTiff: GeoTIFF .br HDF4Image: HDF4 Dataset .br HFA: Erdas Imagine Images (.img) .br JPEG2000: JPEG-2000 part 1 (ISO/IEC 15444-1) .br JPEG: JPEG JFIF .br MEM: In Memory Raster .br MFF2: Atlantis MFF2 (HKV) Raster .br MFF: Atlantis MFF Raster .br NITF: National Imagery Transmission Format .br PAux: PCI .aux Labelled .br PCIDSK: PCIDSK Database File .br PNG: Portable Network Graphics .br PNM: Portable Pixmap Format (netpbm) .br VRT: Virtual Raster .br XPM: X11 PixMap Format .br .DE \fR .SH NOTES When writing out GeoTIFF format for users of ESRI software or ImageMagick, the band interleaving should be switched to pixel interleaving using \fIcreateopt="INTERLEAVE=PIXEL"\fR. Multiple options have to be specified as comma separated list (\fIcreateopt=TFW=YES,COMPRESS=DEFLATE\fR). .PP Out of the GDAL data types, the closest match for GRASS CELL, FCELL and DCELL rasters are respectively Int32, Float32 and Float64. These are not exact equivalents, but they will preserve the max possible data range and number of decimal places for each respective GRASS raster data type. Please keep in mind, that not all CELL rasters will require Int32 - e.g., 0-255 CELL raster are covered by the Byte \fItype\fR as well. Moreover, some GDAL-supported formats do not support all the data types possible in GDAL and GRASS. Use \fIr.info\fR to check the data type and range for your GRASS raster, refer to specific format documentation (GDAL website, format vendor's docs) and e.g. the Wikipedia article \fITypical boundaries of primitive integral types\fR for details. .SH EXAMPLE Export of the map 'elevation.dem' from the Spearfish data set: \fC .DS .br r.out.gdal.sh elevation.dem format=GTiff type=Int16 output=elev_dem.tif .br .DE \fR .SH REFERENCES GDAL library .PP Compile and install GRASS and QGIS with GDAL/OGR Plugin .SH SEE ALSO \fIr.out.arc\fR, \fIr.out.ascii\fR, \fIr.out.tiff\fR .SH AUTHOR Markus Neteler, ITC-irst, Italy .PP \fILast changed: $Date: 2011-11-08 10:42:51 +0100 (Tue, 08 Nov 2011) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team