[GRASS-user] problem in r.out.gdal for idrisi

hello

I need to export grass raster to idrisi (RST) format.

when I enter :

GRASS 6.3.cvs (bartin):~ > r.out.gdal input=asp1_cat@orkun format=RST type=Int16 output=/usr/local/loc0/mercan/aspusgs

I got same error message : with various type option :

ERROR 4: `/usr/local/loc0/mercan/aspusgs' not recognised as a supported file format.

ERROR: Cannot create [/usr/local/loc0/mercan/aspusgs] dataset using [RST]
       driver.

how can I solve the problem ?

regards

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

(CC Frank Warmerdam)

It looks like a bug to me:

GRASS 6.3.svn (nc_spm_06): > export CPL_DEBUG=ON
GRASS 6.3.svn (nc_spm_06): > r.out.gdal input=aspect format=RST
type=Int16 output=/tmp/idrisi.bin
GDAL: Auto register /usr/local/lib/gdalplugins/gdal_GRASS.so using
GDALRegister_GRASS.
Exporting to GDAL data type: Int16
GDAL: GDALDriver::Create(RST,/tmp/idrisi.bin,1500,1350,1,Int16,(nil))
ERROR 6: The ADRG driver does not support update access to existing datasets.

ERROR: Unable to create </tmp/idrisi.bin> dataset using <RST> driver

I am not sure why ADRG appears here.

Markus

On Jan 10, 2008 2:19 PM, temiz <temiz@deprem.gov.tr> wrote:

hello

I need to export grass raster to idrisi (RST) format.

when I enter :

GRASS 6.3.cvs (bartin):~ > r.out.gdal input=asp1_cat@orkun format=RST
type=Int16 output=/usr/local/loc0/mercan/aspusgs

I got same error message : with various type option :

ERROR 4: `/usr/local/loc0/mercan/aspusgs' not recognised as a supported
file format.

ERROR: Cannot create [/usr/local/loc0/mercan/aspusgs] dataset using [RST]
       driver.

how can I solve the problem ?

regards

Nikos Alexandris wrote:

You got RST support? What is the output of:

gdalinfo --formats | grep RST

On Thu, 2008-01-10 at 13:19 +0000, temiz wrote:
  

hello

I need to export grass raster to idrisi (RST) format.

when I enter :

GRASS 6.3.cvs (bartin):~ > r.out.gdal input=asp1_cat@orkun format=RST type=Int16 output=/usr/local/loc0/mercan/aspusgs

I got same error message : with various type option :

ERROR 4: `/usr/local/loc0/mercan/aspusgs' not recognised as a supported file format.

ERROR: Cannot create [/usr/local/loc0/mercan/aspusgs] dataset using [RST]
       driver.

how can I solve the problem ?

regards
    

thank you

hello

1. ~~~~~~~~~~~~~~
  gdalinfo --formats | grep RST
  RST (rw+): Idrisi Raster A.1

2.~~~~~~~~~~~~~~~
GRASS 6.2.1 (bartin):~ > r.out.gdal input=asp1_cat@orkun format=RST output=/usr/local/loc0/mercan/asp_idrisi

Error: value <RST> out of range for parameter <format>
       Legal range: AAIGrid,BMP,BSB,DTED,ELAS,ENVI,FIT,GIF,GTiff,HFA,JPEG,MEM,MFF,MFF2,NITF,PAux,PNG,PNM,VRT,XPM

Description:
Exports GRASS raster data into various formats (requires GDAL)

Keywords:
raster, export

Usage:
r.out.gdal [-l] [input=string] [format=string] [type=string]
   [output=string] [createopt=string[,string,...]]
   [metaopt=string[,string,...]]

Flags:
  -l list supported output formats

Parameters:
      input Name of input raster map
     format GIS format to write (case sensitive, see also -l flag)
              options: AAIGrid,BMP,BSB,DTED,ELAS,ENVI,FIT,GIF,GTiff,HFA,JPEG,
                       MEM,MFF,MFF2,NITF,PAux,PNG,PNM,VRT,XPM
              default: GTiff
       type file type
              options: Byte,Int16,UInt16,UInt32,Int32,Float32,Float64,CInt16,
                       CInt32,CFloat32,CFloat64
     output Name of output file
  createopt creation option to the output format driver. Multiple options may be listed
    metaopt metadata key passed on the output dataset if possible

Do I need to recompile the grass ?

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

2008/1/10, temiz <temiz@deprem.gov.tr>:

1. ~~~~~~~~~~~~~~
  gdalinfo --formats | grep RST
  RST (rw+): Idrisi Raster A.1

2.~~~~~~~~~~~~~~~
GRASS 6.2.1 (bartin):~ > r.out.gdal input=asp1_cat@orkun format=RST
output=/usr/local/loc0/mercan/asp_idrisi

Error: value <RST> out of range for parameter <format>
       Legal range:
AAIGrid,BMP,BSB,DTED,ELAS,ENVI,FIT,GIF,GTiff,HFA,JPEG,MEM,MFF,MFF2,NITF,PAux,PNG,PNM,VRT,XPM

Description:
Exports GRASS raster data into various formats (requires GDAL)

Keywords:
raster, export

Usage:
r.out.gdal [-l] [input=string] [format=string] [type=string]
   [output=string] [createopt=string[,string,...]]
   [metaopt=string[,string,...]]

Flags:
  -l list supported output formats

Parameters:
      input Name of input raster map
     format GIS format to write (case sensitive, see also -l flag)
              options:
AAIGrid,BMP,BSB,DTED,ELAS,ENVI,FIT,GIF,GTiff,HFA,JPEG,
                       MEM,MFF,MFF2,NITF,PAux,PNG,PNM,VRT,XPM
              default: GTiff
       type file type
              options:
Byte,Int16,UInt16,UInt32,Int32,Float32,Float64,CInt16,
                       CInt32,CFloat32,CFloat64
     output Name of output file
  createopt creation option to the output format driver. Multiple
options may be listed
    metaopt metadata key passed on the output dataset if possible

Do I need to recompile the grass ?

no, just use C version of r.out.gdal from grass63, or edit
scripts/r.out.gdal/r.out.gdal for your installation.

Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Martin Landa wrote:

2008/1/10, temiz <temiz@deprem.gov.tr>:

1. ~~~~~~~~~~~~~~
  gdalinfo --formats | grep RST
  RST (rw+): Idrisi Raster A.1

2.~~~~~~~~~~~~~~~
GRASS 6.2.1 (bartin):~ > r.out.gdal input=asp1_cat@orkun format=RST
output=/usr/local/loc0/mercan/asp_idrisi

Error: value <RST> out of range for parameter <format>
       Legal range:
AAIGrid,BMP,BSB,DTED,ELAS,ENVI,FIT,GIF,GTiff,HFA,JPEG,MEM,MFF,MFF2,NITF,PAux,PNG,PNM,VRT,XPM

Description:
Exports GRASS raster data into various formats (requires GDAL)

Keywords:
raster, export

Usage:
r.out.gdal [-l] [input=string] [format=string] [type=string]
   [output=string] [createopt=string[,string,...]]
   [metaopt=string[,string,...]]

Flags:
  -l list supported output formats

Parameters:
      input Name of input raster map
     format GIS format to write (case sensitive, see also -l flag)
              options:
AAIGrid,BMP,BSB,DTED,ELAS,ENVI,FIT,GIF,GTiff,HFA,JPEG,
                       MEM,MFF,MFF2,NITF,PAux,PNG,PNM,VRT,XPM
              default: GTiff
       type file type
              options:
Byte,Int16,UInt16,UInt32,Int32,Float32,Float64,CInt16,
                       CInt32,CFloat32,CFloat64
     output Name of output file
  createopt creation option to the output format driver. Multiple
options may be listed
    metaopt metadata key passed on the output dataset if possible

Do I need to recompile the grass ?
    
no, just use C version of r.out.gdal from grass63, or edit
scripts/r.out.gdal/r.out.gdal for your installation.

Martin

I have also GRASS 6.3.cvs.
But problem still retains

GRASS 6.3.cvs (bartin):~ > r.out.gdal input=asp1_cat@orkun format=RST type=Int16 output=/usr/local/loc0/mercan/asp_idrisiERROR 4: `/usr/local/loc0/mercan/asp_idrisi' not recognised as a supported file format.

ERROR: Cannot create [/usr/local/loc0/mercan/asp_idrisi] dataset using
       [RST] driver.
[Raster MASK present]

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.